File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
invokeai/app/services/workflow_records Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -168,10 +168,10 @@ def get_many(
168
168
wildcard_query = "%" + stripped_query + "%"
169
169
if categories :
170
170
main_query += " AND (name LIKE ? OR description LIKE ?) "
171
- count_query += " AND (name LIKE ? OR description LIKE ?); "
171
+ count_query += " AND (name LIKE ? OR description LIKE ?)"
172
172
else :
173
173
main_query += " WHERE name LIKE ? OR description LIKE ? "
174
- count_query += " WHERE name LIKE ? OR description LIKE ?; "
174
+ count_query += " WHERE name LIKE ? OR description LIKE ?"
175
175
main_params .extend ([wildcard_query , wildcard_query ])
176
176
count_params .extend ([wildcard_query , wildcard_query ])
177
177
@@ -181,6 +181,9 @@ def get_many(
181
181
main_query += " LIMIT ? OFFSET ?"
182
182
main_params .extend ([per_page , page * per_page ])
183
183
184
+ main_query += ";"
185
+ count_query += ";"
186
+
184
187
cursor = self ._conn .cursor ()
185
188
cursor .execute (main_query , main_params )
186
189
rows = cursor .fetchall ()
You can’t perform that action at this time.
0 commit comments