Implement 'event_format' filter param in /sync

This has been specced and part-implemented; let's implement it for /sync (but
no other endpoints yet :/).
This commit is contained in:
Richard van der Hoff 2018-09-04 15:18:25 +01:00
parent 77055dba92
commit 87c18d12ee
2 changed files with 39 additions and 13 deletions

View file

@ -251,6 +251,7 @@ class FilterCollection(object):
"include_leave", False
)
self.event_fields = filter_json.get("event_fields", [])
self.event_format = filter_json.get("event_format", "client")
def __repr__(self):
return "<FilterCollection %s>" % (json.dumps(self._filter_json),)