Fix sql comment to match updated code.

This commit is contained in:
Ryan Roden-Corrent 2018-11-13 20:44:57 -05:00
parent 2e562a926b
commit bf10f483e1
No known key found for this signature in database
GPG Key ID: 4E5072F68872BC04

View File

@ -74,7 +74,8 @@ class HistoryCategory(QSqlQueryModel):
# build a where clause to match all of the words in any order
# given the search term "a b", the WHERE clause would be:
# ((url || title) LIKE '%a%') AND ((url || title) LIKE '%b%')
# ((url || ' ' || title) LIKE '%a%') AND
# ((url || ' ' || title) LIKE '%b%')
where_clause = ' AND '.join(
"(url || ' ' || title) LIKE :{} escape '\\'".format(i)
for i in range(len(words)))