mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:56:06 -04:00
Fix unicode database support
This commit is contained in:
parent
0ba393924a
commit
0e8f5095c7
15 changed files with 88 additions and 44 deletions
|
@ -54,7 +54,7 @@ class SignatureStore(SQLBaseStore):
|
|||
{
|
||||
"event_id": event_id,
|
||||
"algorithm": algorithm,
|
||||
"hash": buffer(hash_bytes),
|
||||
"hash": hash_bytes,
|
||||
},
|
||||
)
|
||||
|
||||
|
@ -99,7 +99,7 @@ class SignatureStore(SQLBaseStore):
|
|||
" WHERE event_id = ?"
|
||||
)
|
||||
txn.execute(query, (event_id, ))
|
||||
return dict(txn.fetchall())
|
||||
return {k: v for k, v in txn.fetchall()}
|
||||
|
||||
def _store_event_reference_hash_txn(self, txn, event_id, algorithm,
|
||||
hash_bytes):
|
||||
|
@ -116,7 +116,7 @@ class SignatureStore(SQLBaseStore):
|
|||
{
|
||||
"event_id": event_id,
|
||||
"algorithm": algorithm,
|
||||
"hash": buffer(hash_bytes),
|
||||
"hash": hash_bytes,
|
||||
},
|
||||
)
|
||||
|
||||
|
@ -160,7 +160,7 @@ class SignatureStore(SQLBaseStore):
|
|||
"event_id": event_id,
|
||||
"signature_name": signature_name,
|
||||
"key_id": key_id,
|
||||
"signature": buffer(signature_bytes),
|
||||
"signature": signature_bytes,
|
||||
},
|
||||
)
|
||||
|
||||
|
@ -193,6 +193,6 @@ class SignatureStore(SQLBaseStore):
|
|||
"event_id": event_id,
|
||||
"prev_event_id": prev_event_id,
|
||||
"algorithm": algorithm,
|
||||
"hash": buffer(hash_bytes),
|
||||
"hash": hash_bytes,
|
||||
},
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue