mirror of
https://mau.dev/maunium/synapse.git
synced 2024-09-04 00:22:20 +00: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
|
||||||
"""
|
"""
|
||||||
txn = self.db_conn.cursor()
|
try:
|
||||||
txn.execute(sql, (thirty_days_ago,))
|
txn = self.db_conn.cursor()
|
||||||
count, = txn.fetchone()
|
txn.execute(sql, (thirty_days_ago,))
|
||||||
return count
|
count, = txn.fetchone()
|
||||||
|
return count
|
||||||
|
finally:
|
||||||
|
txn.close()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def count_r30_users(self):
|
def count_r30_users(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user