summary refs log tree commit diff
diff options
context:
space:
mode:
authorSamuel Philipp <codes@samuel-philipp.de>2021-10-27 18:25:18 +0200
committerGitHub <noreply@github.com>2021-10-27 17:25:18 +0100
commit4e393af52f6d15d195319fa240699522100e4844 (patch)
tree19c622d64259e4765e1193cfef68a3ea5ce40555
parentRefactor `Filter` to handle fields according to data being filtered. (#11194) (diff)
downloadsynapse-4e393af52f6d15d195319fa240699522100e4844.tar.xz
Fixed config parse bug in review_recent_signups (#11191)
-rw-r--r--changelog.d/11191.bugfix1
-rw-r--r--synapse/_scripts/review_recent_signups.py9
2 files changed, 8 insertions, 2 deletions
diff --git a/changelog.d/11191.bugfix b/changelog.d/11191.bugfix
new file mode 100644
index 0000000000..9104db7f0e
--- /dev/null
+++ b/changelog.d/11191.bugfix
@@ -0,0 +1 @@
+Fix a bug introduced in Synapse 1.45.0 which prevented the `synapse_review_recent_signups` script from running. Contributed by @samuel-p.
diff --git a/synapse/_scripts/review_recent_signups.py b/synapse/_scripts/review_recent_signups.py
index 9de913db88..8e66a38421 100644
--- a/synapse/_scripts/review_recent_signups.py
+++ b/synapse/_scripts/review_recent_signups.py
@@ -20,7 +20,12 @@ from typing import List
 
 import attr
 
-from synapse.config._base import RootConfig, find_config_files, read_config_files
+from synapse.config._base import (
+    Config,
+    RootConfig,
+    find_config_files,
+    read_config_files,
+)
 from synapse.config.database import DatabaseConfig
 from synapse.storage.database import DatabasePool, LoggingTransaction, make_conn
 from synapse.storage.engines import create_engine
@@ -126,7 +131,7 @@ def main():
         config_dict,
     )
 
-    since_ms = time.time() * 1000 - config.parse_duration(config_args.since)
+    since_ms = time.time() * 1000 - Config.parse_duration(config_args.since)
     exclude_users_with_email = config_args.exclude_emails
     include_context = not config_args.only_users