Merge pull request #311 from matrix-org/markjh/postgres_fixes

Fix FilteringStore.get_user_filter to work with postgres
pull/4/merge
Erik Johnston 9 years ago
commit 524b708f98
  1. 2
      synapse/storage/filtering.py

@ -34,7 +34,7 @@ class FilteringStore(SQLBaseStore):
desc="get_user_filter",
)
defer.returnValue(json.loads(def_json.decode("utf-8")))
defer.returnValue(json.loads(str(def_json).decode("utf-8")))
def add_user_filter(self, user_localpart, user_filter):
def_json = json.dumps(user_filter).encode("utf-8")

Loading…
Cancel
Save