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