summaryrefslogtreecommitdiff
path: root/common/utils.py
diff options
context:
space:
mode:
authorMichaël Ball <michael.ball@gmail.com>2015-12-20 15:22:16 +0000
committerMichaël Ball <michael.ball@gmail.com>2015-12-20 15:29:39 +0000
commit3f14c56860ff67e2d2a689fe3f362ad7a25631d5 (patch)
tree6ac2d39fd268231f4f7ebdf8a41661c27b89101e /common/utils.py
parentf0b11a127a127a91217fcd5645c772ce37b2bfcf (diff)
Syntax improvements
Diffstat (limited to 'common/utils.py')
-rw-r--r--common/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/utils.py b/common/utils.py
index 38ad5ed..a7489f9 100644
--- a/common/utils.py
+++ b/common/utils.py
@@ -13,7 +13,7 @@ def make_where_clause(params, join_operator="AND"):
try:
for (column, operator) in params.items():
condition_subphrase = ""
-
+
if operator == "BETWEEN":
condition_subphrase = " ".join(("%s", operator,
":%s1 AND :%s2"))
@@ -22,7 +22,7 @@ def make_where_clause(params, join_operator="AND"):
column))
else:
condition_subphrase = " ".join(("%s", operator, ":%s"))
-
+
where_items.append(condition_subphrase % (column, column))
where_statement = None