From 3f14c56860ff67e2d2a689fe3f362ad7a25631d5 Mon Sep 17 00:00:00 2001 From: Michaƫl Ball Date: Sun, 20 Dec 2015 15:22:16 +0000 Subject: Syntax improvements --- common/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common') 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 -- cgit v1.2.3