mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-19 09:54:10 +01:00
Merge pull request #447 from matrix-org/rav/fix_search_pagination
Fix 500 error when back-paginating search results
This commit is contained in:
commit
8b9f471d27
1 changed files with 4 additions and 2 deletions
|
@ -286,8 +286,10 @@ class SearchStore(BackgroundUpdateStore):
|
|||
"(%s)" % (" OR ".join(local_clauses),)
|
||||
)
|
||||
|
||||
count_args = args
|
||||
count_clauses = clauses
|
||||
# take copies of the current args and clauses lists, before adding
|
||||
# pagination clauses to main query.
|
||||
count_args = list(args)
|
||||
count_clauses = list(clauses)
|
||||
|
||||
if pagination_token:
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue