mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-09 00:54:56 -04:00
Lint
This commit is contained in:
parent
416c7baee6
commit
1c1268245d
1 changed files with 3 additions and 6 deletions
|
@ -522,7 +522,7 @@ class EventsBackgroundUpdatesStore(BackgroundUpdateStore):
|
|||
WHERE event_id > ? AND label IS NULL
|
||||
LIMIT ?
|
||||
""",
|
||||
(last_event_id, batch_size)
|
||||
(last_event_id, batch_size),
|
||||
)
|
||||
|
||||
rows = self.cursor_to_dict(txn)
|
||||
|
@ -537,12 +537,9 @@ class EventsBackgroundUpdatesStore(BackgroundUpdateStore):
|
|||
txn=txn,
|
||||
table="event_labels",
|
||||
values=[
|
||||
{
|
||||
"event_id": event_id,
|
||||
"label": label,
|
||||
}
|
||||
{"event_id": event_id, "label": label}
|
||||
for label in event_json["content"].get(LabelsField, [])
|
||||
]
|
||||
],
|
||||
)
|
||||
|
||||
self._background_update_progress_txn(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue