mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 08:23:47 +01: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
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue