Fixing mappings petition fetch

Whoops!
This commit is contained in:
Hydrus Network Developer 2024-07-13 13:02:07 -05:00
parent bad2969076
commit dc0f65d7d7
No known key found for this signature in database
GPG Key ID: 76249F053212133C
1 changed files with 1 additions and 1 deletions

View File

@ -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: