summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMichaël Ball <michael.ball@gmail.com>2019-06-30 11:12:05 +0100
committerMichaël Ball <michael.ball@gmail.com>2019-06-30 11:12:05 +0100
commita87517a0b385f1a68dd80e7dabf7843955c95ab9 (patch)
tree696f1e2a45ab7c0db57ce562517790cb73247b53 /common
parent1acbc1e85d6a0af47c236c48b8c5a1b504871d96 (diff)
Diffstat (limited to 'common')
-rw-r--r--common/security.py2
-rw-r--r--common/utils.py8
2 files changed, 5 insertions, 5 deletions
diff --git a/common/security.py b/common/security.py
index e3ab5de..d021fcf 100644
--- a/common/security.py
+++ b/common/security.py
@@ -17,4 +17,4 @@ pwd_context = CryptContext(
# (appropriate values may vary for different schemes,
# and the amount of time you wish it to take)
pbkdf2_sha256__default_rounds=8000,
- )
+)
diff --git a/common/utils.py b/common/utils.py
index efac527..f1134a7 100644
--- a/common/utils.py
+++ b/common/utils.py
@@ -15,11 +15,11 @@ def make_where_clause(params, join_operator="AND"):
condition_subphrase = ""
if operator == "BETWEEN":
- condition_subphrase = " ".join(("%s", operator,
- ":%s1 AND :%s2"))
+ condition_subphrase = " ".join(
+ ("%s", operator, ":%s1 AND :%s2"))
- where_items.append(condition_subphrase % (column, column,
- column))
+ where_items.append(condition_subphrase %
+ (column, column, column))
else:
condition_subphrase = " ".join(("%s", operator, ":%s"))