From: Barış Metin Date: Wed, 6 Jan 2010 15:01:27 +0000 (+0000) Subject: quote value for all operators (thanks to Jordan for the fix) X-Git-Tag: PLCAPI-4.3-32~3 X-Git-Url: http://git.onelab.eu/?p=plcapi.git;a=commitdiff_plain;h=38fd936c8dea87c4feb4620db06a91691a0bf5ff quote value for all operators (thanks to Jordan for the fix) --- diff --git a/PLC/Filter.py b/PLC/Filter.py index 3f04da9..520c6ff 100644 --- a/PLC/Filter.py +++ b/PLC/Filter.py @@ -193,8 +193,8 @@ class Filter(Parameter, dict): operator='<=' if modifiers[']']: operator='>=' - else: - value = str(api.db.quote(value)) + + value = str(api.db.quote(value)) clause = "%s %s %s" % (field, operator, value)