From dc0f65d7d7ca3399348f124f7a8596c62dbd12c7 Mon Sep 17 00:00:00 2001 From: Hydrus Network Developer Date: Sat, 13 Jul 2024 13:02:07 -0500 Subject: [PATCH] Fixing mappings petition fetch Whoops! --- hydrus/server/ServerDB.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hydrus/server/ServerDB.py b/hydrus/server/ServerDB.py index b5a77553..3233cd24 100644 --- a/hydrus/server/ServerDB.py +++ b/hydrus/server/ServerDB.py @@ -3014,7 +3014,7 @@ class DB( HydrusDB.HydrusDB ): reason = self._GetReason( reason_id ) - tag_ids_to_hash_ids = HydrusData.BuildKeyToListDict( self._Execute( f'SELECT service_tag_id, service_hash_id FROM {petitioned_mappings_table_name} WHERE account_id = ? AND reason_id = ? LIMIT;', ( petitioner_account_id, reason_id, MAX_MAPPINGS_PER_PETITION ) ) ) + tag_ids_to_hash_ids = HydrusData.BuildKeyToListDict( self._Execute( f'SELECT service_tag_id, service_hash_id FROM {petitioned_mappings_table_name} WHERE account_id = ? AND reason_id = ? LIMIT ?;', ( petitioner_account_id, reason_id, MAX_MAPPINGS_PER_PETITION ) ) ) if len( tag_ids_to_hash_ids ) == 0: