summary refs log tree commit diff
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2020-06-11 18:04:43 +0100
committerBrendan Abolivier <babolivier@matrix.org>2020-06-11 18:04:43 +0100
commitd0f095625c996c8b831e27609ed88704df3b2845 (patch)
treed39d408201114f89aefcc5ed521f4b00a4c06bef
parentSave the count of unread messages to event_push_summary (diff)
downloadsynapse-d0f095625c996c8b831e27609ed88704df3b2845.tar.xz
Lint
-rw-r--r--synapse/storage/data_stores/main/event_push_actions.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/storage/data_stores/main/event_push_actions.py b/synapse/storage/data_stores/main/event_push_actions.py
index 2b56e1d104..af0ab6cbc1 100644
--- a/synapse/storage/data_stores/main/event_push_actions.py
+++ b/synapse/storage/data_stores/main/event_push_actions.py
@@ -897,7 +897,8 @@ class EventPushActionsStore(EventPushActionsWorkerStore):
             """,
             (
                 (notif_rows[i][2], rows[i][2], rows[i][3], rows[i][0], rows[i][1])
-                for i, _ in enumerate(rows) if rows[i][4] is not None
+                for i, _ in enumerate(rows)
+                if rows[i][4] is not None
             ),
         )