summary refs log tree commit diff
path: root/synapse/storage/receipts.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-08-18 11:54:03 +0100
committerErik Johnston <erik@matrix.org>2015-08-18 11:54:03 +0100
commitf704c10f29ac1b013966cc8e43e74d38449cee6a (patch)
tree5967d4e6b60faebb03987251debc2fb555d5b5ca /synapse/storage/receipts.py
parentComments (diff)
downloadsynapse-f704c10f29ac1b013966cc8e43e74d38449cee6a.tar.xz
Rename unhelpful variable name
Diffstat (limited to 'synapse/storage/receipts.py')
-rw-r--r--synapse/storage/receipts.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/synapse/storage/receipts.py b/synapse/storage/receipts.py
index 0ed9f45ecd..a535063547 100644
--- a/synapse/storage/receipts.py
+++ b/synapse/storage/receipts.py
@@ -168,13 +168,8 @@ class ReceiptsStore(SQLBaseStore):
 
             # The content is of the form:
             # {"$foo:bar": { "read": { "@user:host": <receipt> }, .. }, .. }
-            event_id = room_event["content"].setdefault(
-                row["event_id"], {}
-            )
-
-            receipt_type = event_id.setdefault(
-                row["receipt_type"], {}
-            )
+            event_entry = room_event["content"].setdefault(row["event_id"], {})
+            receipt_type = event_entry.setdefault(row["receipt_type"], {})
 
             receipt_type[row["user_id"]] = json.loads(row["data"])