summary refs log tree commit diff
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2019-10-31 15:01:29 +0000
committerBrendan Abolivier <babolivier@matrix.org>2019-11-04 09:56:11 +0000
commit1c1268245d501e3edefbe3a4eb40c238124bb2e6 (patch)
tree28c841f9004246d7c7e84e4c06ab98da6a57e6c3
parentChangelog (diff)
downloadsynapse-1c1268245d501e3edefbe3a4eb40c238124bb2e6.tar.xz
Lint
-rw-r--r--synapse/storage/data_stores/main/events_bg_updates.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/synapse/storage/data_stores/main/events_bg_updates.py b/synapse/storage/data_stores/main/events_bg_updates.py
index c8168f6926..10ebc6d865 100644
--- a/synapse/storage/data_stores/main/events_bg_updates.py
+++ b/synapse/storage/data_stores/main/events_bg_updates.py
@@ -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(