Rename 'pruned' to 'pruned_because'

This commit is contained in:
Erik Johnston 2014-09-23 17:40:58 +01:00
parent bc250a6afa
commit efea61dc50
3 changed files with 3 additions and 3 deletions

View File

@ -59,7 +59,7 @@ class SynapseEvent(JsonEncodedObject):
"age_ts",
"prev_content",
"prev_state",
"pruned",
"pruned_because",
]
internal_keys = [

View File

@ -206,7 +206,7 @@ class DataStore(RoomMemberStore, RoomStore,
unrec = {
k: v
for k, v in event.get_full_dict().items()
if k not in vals.keys() and k not in ["deleted", "pruned"]
if k not in vals.keys() and k not in ["deleted", "pruned_because"]
}
vals["unrecognized_keys"] = json.dumps(unrec)

View File

@ -398,7 +398,7 @@ class SQLBaseStore(object):
if del_evs:
prune_event(ev)
ev.pruned = del_evs[0]
ev.pruned_because = del_evs[0]
return events