summary refs log tree commit diff
path: root/synapse/app
diff options
context:
space:
mode:
authorNeil Johnson <neil@fragile.org.uk>2018-04-05 12:16:46 +0100
committerNeil Johnson <neil@fragile.org.uk>2018-04-05 12:16:46 +0100
commit0e5f479fc05ef9257c1bfce033c8fb91e6244ffe (patch)
tree14b9530059f7b8a06a7f4630beb4c0ec6c3a7319 /synapse/app
parentpep8 (diff)
downloadsynapse-0e5f479fc05ef9257c1bfce033c8fb91e6244ffe.tar.xz
Review comments
Use iteritems over item to loop over dict
formatting
Diffstat (limited to 'synapse/app')
-rwxr-xr-xsynapse/app/homeserver.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py
index 35e2b00f1b..777e9c529a 100755
--- a/synapse/app/homeserver.py
+++ b/synapse/app/homeserver.py
@@ -426,7 +426,7 @@ def run(hs):
         stats["daily_messages"] = yield hs.get_datastore().count_daily_messages()
 
         r30_results = yield hs.get_datastore().count_r30_users()
-        for name, count in r30_results.items():
+        for name, count in r30_results.iteritems():
             stats["r30_users_" + name] = count
 
         daily_sent_messages = yield hs.get_datastore().count_daily_sent_messages()