Rename unhelpful variable name

pull/227/head
Erik Johnston 2015-08-18 11:54:03 +01:00
parent cfc503681f
commit f704c10f29
1 changed files with 2 additions and 7 deletions

View File

@ -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"])