From 4b7bf2e413a6012c87e3d12f7bf4183b9638836b Mon Sep 17 00:00:00 2001 From: reivilibre <38398653+reivilibre@users.noreply.github.com> Date: Tue, 27 Aug 2019 13:26:08 +0100 Subject: Apply suggestions from code review Co-Authored-By: Erik Johnston --- synapse/storage/stats.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'synapse/storage/stats.py') diff --git a/synapse/storage/stats.py b/synapse/storage/stats.py index 5a7dfde926..62047839cc 100644 --- a/synapse/storage/stats.py +++ b/synapse/storage/stats.py @@ -134,7 +134,7 @@ class StatsStore(StateDeltasStore): def _upsert_with_additive_relatives_txn( self, txn, table, keyvalues, absolutes, additive_relatives ): - """ + """Used to update values in the stats tables. Args: txn: Transaction @@ -322,7 +322,7 @@ class StatsStore(StateDeltasStore): elif complete_with_stream_id is not None: absolute_fields = absolute_fields.copy() - absolute_fields["completed_delta_stream_id"] = complete_with_stream_id + absolute_fields["completed_delta_stream_id"] = complete_with_stream_id # first upsert the current table self._upsert_with_additive_relatives_txn( -- cgit 1.5.1