mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-06 09:44:56 -04:00
Get db signatures file to pass mypy (#11312)
This commit is contained in:
parent
8dc666f785
commit
6a605f4a77
4 changed files with 8 additions and 10 deletions
|
@ -63,12 +63,12 @@ class SignatureWorkerStore(SQLBaseStore):
|
|||
A list of tuples of event ID and a mapping of algorithm to base-64 encoded hash.
|
||||
"""
|
||||
hashes = await self.get_event_reference_hashes(event_ids)
|
||||
hashes = {
|
||||
encoded_hashes = {
|
||||
e_id: {k: encode_base64(v) for k, v in h.items() if k == "sha256"}
|
||||
for e_id, h in hashes.items()
|
||||
}
|
||||
|
||||
return list(hashes.items())
|
||||
return list(encoded_hashes.items())
|
||||
|
||||
def _get_event_reference_hashes_txn(
|
||||
self, txn: Cursor, event_id: str
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue