mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-09-03 00:17:16 +00:00
Handles the rebase from the trash changes
This commit is contained in:
@@ -149,8 +149,7 @@ def _build_where(
|
||||
# too (e.g. an install with an enormous trash), not just IN.
|
||||
PermittedIdsTable.load(conn, values)
|
||||
clauses.append(
|
||||
f"{f.key} {sql_op} "
|
||||
f"(SELECT id FROM {PermittedIdsTable.TABLE_NAME})",
|
||||
f"{f.key} {sql_op} (SELECT id FROM {PermittedIdsTable.TABLE_NAME})",
|
||||
)
|
||||
continue
|
||||
placeholders = ",".join("?" for _ in values)
|
||||
|
||||
Reference in New Issue
Block a user