Rename 'pruned' to 'pruned_because'

pull/4/merge
Erik Johnston 10 years ago
parent bc250a6afa
commit efea61dc50
  1. 2
      synapse/api/events/__init__.py
  2. 2
      synapse/storage/__init__.py
  3. 2
      synapse/storage/_base.py

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

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

@ -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

Loading…
Cancel
Save