From e989c21447bcc1aabaf64035ef989081c1cdd9bf Mon Sep 17 00:00:00 2001 From: Jason Little Date: Tue, 8 Oct 2024 21:05:55 -0500 Subject: [PATCH] Remove `Generator` in `store_search_entries_txn` from SearchWorkerStore --- synapse/storage/databases/main/search.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synapse/storage/databases/main/search.py b/synapse/storage/databases/main/search.py index b436275f3fd..1d5c5e72ffc 100644 --- a/synapse/storage/databases/main/search.py +++ b/synapse/storage/databases/main/search.py @@ -94,7 +94,7 @@ def store_search_entries_txn( VALUES (?,?,?,to_tsvector('english', ?),?,?) """ - args1 = ( + args1 = [ ( entry.event_id, entry.room_id, @@ -104,7 +104,7 @@ def store_search_entries_txn( entry.origin_server_ts, ) for entry in entries - ) + ] txn.execute_batch(sql, args1)