DbQuery: WHERE without AND is still WHERE

This commit is contained in:
Ivanq 2017-10-26 18:32:05 +03:00
parent 9d511ba165
commit c64e97f0d6
1 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,8 @@ class DbQuery:
def parseWheres(self, query_where):
if " AND " in query_where:
return query_where.split(" AND ")
elif query_where:
return [query_where]
else:
return []