git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
quote value for all operators (thanks to Jordan for the fix)
[plcapi.git]
/
PLC
/
Filter.py
diff --git
a/PLC/Filter.py
b/PLC/Filter.py
index
3f04da9
..
520c6ff
100644
(file)
--- 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)