This commit is contained in:
Brendan Abolivier 2019-10-31 15:01:29 +00:00
parent 416c7baee6
commit 1c1268245d
No known key found for this signature in database
GPG key ID: 1E015C145F1916CD

View file

@ -522,7 +522,7 @@ class EventsBackgroundUpdatesStore(BackgroundUpdateStore):
WHERE event_id > ? AND label IS NULL WHERE event_id > ? AND label IS NULL
LIMIT ? LIMIT ?
""", """,
(last_event_id, batch_size) (last_event_id, batch_size),
) )
rows = self.cursor_to_dict(txn) rows = self.cursor_to_dict(txn)
@ -537,12 +537,9 @@ class EventsBackgroundUpdatesStore(BackgroundUpdateStore):
txn=txn, txn=txn,
table="event_labels", table="event_labels",
values=[ values=[
{ {"event_id": event_id, "label": label}
"event_id": event_id,
"label": label,
}
for label in event_json["content"].get(LabelsField, []) for label in event_json["content"].get(LabelsField, [])
] ],
) )
self._background_update_progress_txn( self._background_update_progress_txn(