Added glob and like lookups - refs #23

This commit is contained in:
Simon Willison 2017-10-24 18:53:01 -07:00
commit 1c5977961f
2 changed files with 10 additions and 0 deletions

2
app.py
View file

@ -329,6 +329,8 @@ def build_where_clause(args):
'gte': '"{}" >= ?',
'lt': '"{}" < ?',
'lte': '"{}" <= ?',
'glob': '"{}" glob ?',
'like': '"{}" like ?',
}[lookup]
value = values[0]
value_convert = {