forked from LBRYCommunity/lbry-sdk
+ __not_like db condition
This commit is contained in:
parent
33ac9eea13
commit
d7dadc2f0e
1 changed files with 2 additions and 0 deletions
|
@ -101,6 +101,8 @@ def constraints_to_sql(constraints, joiner=' AND ', prepend_key=''):
|
|||
col, op = col[:-len('__gt')], '>'
|
||||
elif key.endswith('__like'):
|
||||
col, op = col[:-len('__like')], 'LIKE'
|
||||
elif key.endswith('__not_like'):
|
||||
col, op = col[:-len('__not_like')], 'NOT LIKE'
|
||||
elif key.endswith('__in') or key.endswith('__not_in'):
|
||||
if key.endswith('__in'):
|
||||
col, op = col[:-len('__in')], 'IN'
|
||||
|
|
Loading…
Reference in a new issue