From f101e0e3a406b08622991fdb88c379bfe45d926c Mon Sep 17 00:00:00 2001 From: "Olivier Wilkinson (reivilibre)" Date: Mon, 24 Aug 2020 14:13:53 +0100 Subject: lpnet Signed-off-by: Olivier Wilkinson (reivilibre) --- synapse/storage/databases/main/roommember.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/synapse/storage/databases/main/roommember.py b/synapse/storage/databases/main/roommember.py index b2fcfc9bfe..b1283fff20 100644 --- a/synapse/storage/databases/main/roommember.py +++ b/synapse/storage/databases/main/roommember.py @@ -221,10 +221,14 @@ class RoomMemberWorkerStore(EventsWorkerStore): GROUP BY m.membership """ - txn.execute(sql, (room_id,)) + # rei tmp + #txn.execute(sql, (room_id,)) + #res = {} + #for count, membership in txn: + # summary = res.setdefault(membership, MemberSummary([], count)) + res = {} - for count, membership in txn: - summary = res.setdefault(membership, MemberSummary([], count)) + summary = res.setdefault("join", MemberSummary([], 42)) # we order by membership and then fairly arbitrarily by event_id so # heroes are consistent -- cgit 1.4.1