From f12bb11797778ec042d40372d3cdf2dbd5540ce2 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Wed, 22 Aug 2018 19:13:06 +0200 Subject: fix tests --- synapse/storage/monthly_active_users.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'synapse/storage/monthly_active_users.py') diff --git a/synapse/storage/monthly_active_users.py b/synapse/storage/monthly_active_users.py index fa985bc005..03526ce1e3 100644 --- a/synapse/storage/monthly_active_users.py +++ b/synapse/storage/monthly_active_users.py @@ -145,10 +145,10 @@ class MonthlyActiveUsersStore(SQLBaseStore): sql = """ SELECT COALESCE(count(*), 0) FROM monthly_active_users - WHERE timestamp - last_active > ? + WHERE timestamp - first_active >= ? """ - txn.execute(sql, mau_trial_ms) + txn.execute(sql, (mau_trial_ms,)) count, = txn.fetchone() return count return self.runInteraction("count_users", _count_users) -- cgit 1.5.1