Skip to content
Snippets Groups Projects
Commit 0f890f47 authored by Neil Johnson's avatar Neil Johnson
Browse files

No need to cast in count_daily_users

parent a32d2548
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment