Rename unhelpful variable name

This commit is contained in:
Erik Johnston 2015-08-18 11:54:03 +01:00
parent cfc503681f
commit f704c10f29

View File

@ -168,13 +168,8 @@ class ReceiptsStore(SQLBaseStore):
# The content is of the form: # The content is of the form:
# {"$foo:bar": { "read": { "@user:host": <receipt> }, .. }, .. } # {"$foo:bar": { "read": { "@user:host": <receipt> }, .. }, .. }
event_id = room_event["content"].setdefault( event_entry = room_event["content"].setdefault(row["event_id"], {})
row["event_id"], {} receipt_type = event_entry.setdefault(row["receipt_type"], {})
)
receipt_type = event_id.setdefault(
row["receipt_type"], {}
)
receipt_type[row["user_id"]] = json.loads(row["data"]) receipt_type[row["user_id"]] = json.loads(row["data"])