Add filter JSON sanity checks.

This commit is contained in:
Kegan Dougal 2015-01-28 16:45:18 +00:00
parent 8398f19bce
commit c23e3db544
4 changed files with 128 additions and 11 deletions

View file

@ -39,8 +39,8 @@ class FilteringStore(SQLBaseStore):
defer.returnValue(json.loads(def_json))
def add_user_filter(self, user_localpart, definition):
def_json = json.dumps(definition)
def add_user_filter(self, user_localpart, user_filter):
def_json = json.dumps(user_filter)
# Need an atomic transaction to SELECT the maximal ID so far then
# INSERT a new one