mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-25 14:59:22 -05:00
Merge pull request #2332 from matrix-org/rav/fix_pushes
Fix caching error in the push evaluator
This commit is contained in:
commit
3d31b39297
@ -200,7 +200,9 @@ def _glob_to_re(glob, word_boundary):
|
||||
return re.compile(r, flags=re.IGNORECASE)
|
||||
|
||||
|
||||
def _flatten_dict(d, prefix=[], result={}):
|
||||
def _flatten_dict(d, prefix=[], result=None):
|
||||
if result is None:
|
||||
result = {}
|
||||
for key, value in d.items():
|
||||
if isinstance(value, basestring):
|
||||
result[".".join(prefix + [key])] = value.lower()
|
||||
|
Loading…
Reference in New Issue
Block a user