Skip to content

Commit

Permalink
Fixing mappings petition fetch
Browse files Browse the repository at this point in the history
Whoops!
  • Loading branch information
hydrusnetwork committed Jul 13, 2024
1 parent bad2969 commit dc0f65d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hydrus/server/ServerDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -3014,7 +3014,7 @@ def _RepositoryGetMappingPetition( self, service_id, petitioner_account_id, reas

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:

Expand Down

0 comments on commit dc0f65d

Please sign in to comment.