summary refs log tree commit diff
diff options
context:
space:
mode:
authorOlivier Wilkinson (reivilibre) <olivier@librepush.net>2019-08-27 13:42:33 +0100
committerOlivier Wilkinson (reivilibre) <olivier@librepush.net>2019-08-27 13:42:33 +0100
commit736ac58e1191fc28abaef5c2cab86901b85ce192 (patch)
treee176cf7310b43ce73e3b35a1bd3f77f58564ab9a
parentLock tables in upsert fall-backs. (diff)
downloadsynapse-736ac58e1191fc28abaef5c2cab86901b85ce192.tar.xz
Code formatting (Black)
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
-rw-r--r--synapse/storage/stats.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/synapse/storage/stats.py b/synapse/storage/stats.py
index 0f3aa6a801..650c0050cb 100644
--- a/synapse/storage/stats.py
+++ b/synapse/storage/stats.py
@@ -221,10 +221,7 @@ class StatsStore(StateDeltasStore):
         """
         if self.database_engine.can_native_upsert:
             ins_columns = chain(
-                keyvalues,
-                copy_columns,
-                additive_relatives,
-                extra_dst_keyvalues,
+                keyvalues, copy_columns, additive_relatives, extra_dst_keyvalues
             )
             sel_exprs = chain(
                 keyvalues,
@@ -349,7 +346,10 @@ class StatsStore(StateDeltasStore):
                 txn=txn,
                 into_table=table + "_historical",
                 keyvalues={id_col: stats_id},
-                extra_dst_keyvalues={"end_ts": end_ts, "bucket_size": self.stats_bucket_size},
+                extra_dst_keyvalues={
+                    "end_ts": end_ts,
+                    "bucket_size": self.stats_bucket_size,
+                },
                 additive_relatives=per_slice_additive_relatives,
                 src_table=table + "_current",
                 copy_columns=abs_field_names,