From d7dadc2f0e8fc790e08738614e6e1cf012d5b453 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Mon, 25 Mar 2019 22:04:48 -0400 Subject: [PATCH] + __not_like db condition --- torba/client/basedatabase.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/torba/client/basedatabase.py b/torba/client/basedatabase.py index 75f3cb991..d914ce9d6 100644 --- a/torba/client/basedatabase.py +++ b/torba/client/basedatabase.py @@ -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'