summary refs log tree commit diff
path: root/synapse/storage/__init__.py
diff options
context:
space:
mode:
authorNeil Johnson <neil@fragile.org.uk>2018-03-28 11:49:57 +0100
committerNeil Johnson <neil@fragile.org.uk>2018-03-28 11:49:57 +0100
commit0f890f477eb2ed03b8fd48710d1960210f44a334 (patch)
treeab467b703023d445d482d7a01e1ffbf605cbdea7 /synapse/storage/__init__.py
parentquery and call for r30 stats (diff)
downloadsynapse-0f890f477eb2ed03b8fd48710d1960210f44a334.tar.xz
No need to cast in count_daily_users
Diffstat (limited to 'synapse/storage/__init__.py')
-rw-r--r--synapse/storage/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/__init__.py b/synapse/storage/__init__.py
index 10f99c3cd5..ba43b2d8ec 100644
--- a/synapse/storage/__init__.py
+++ b/synapse/storage/__init__.py
@@ -250,7 +250,7 @@ class DataStore(RoomMemberStore, RoomStore,
         Counts the number of users who used this homeserver in the last 24 hours.
         """
         def _count_users(txn):
-            yesterday = int(self._clock.time_msec()) - (1000 * 60 * 60 * 24),
+            yesterday = int(self._clock.time_msec()) - (1000 * 60 * 60 * 24)
 
             sql = """
                 SELECT COALESCE(count(*), 0) FROM (
@@ -260,7 +260,7 @@ class DataStore(RoomMemberStore, RoomStore,
                 ) u
             """
 
-            txn.execute(sql, (str(yesterday),))
+            txn.execute(sql, (yesterday,))
             count, = txn.fetchone()
             return count