mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-02-04 12:25:21 -05:00
actually close conn
This commit is contained in:
parent
cefac79c10
commit
fef7e58ac6
@ -283,10 +283,14 @@ class DataStore(RoomMemberStore, RoomStore,
|
|||||||
GROUP BY user_id
|
GROUP BY user_id
|
||||||
) u
|
) u
|
||||||
"""
|
"""
|
||||||
|
try:
|
||||||
txn = self.db_conn.cursor()
|
txn = self.db_conn.cursor()
|
||||||
txn.execute(sql, (thirty_days_ago,))
|
txn.execute(sql, (thirty_days_ago,))
|
||||||
count, = txn.fetchone()
|
count, = txn.fetchone()
|
||||||
return count
|
return count
|
||||||
|
finally:
|
||||||
|
txn.close()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def count_r30_users(self):
|
def count_r30_users(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user