diff options
author | Olivier Wilkinson (reivilibre) <olivier@librepush.net> | 2020-08-24 14:13:53 +0100 |
---|---|---|
committer | Olivier Wilkinson (reivilibre) <olivier@librepush.net> | 2020-08-24 14:13:53 +0100 |
commit | f101e0e3a406b08622991fdb88c379bfe45d926c (patch) | |
tree | 36623cc6ec04cf48d84b9dc93099230e3445283a | |
parent | Changelog changes (diff) | |
download | synapse-github/rei/lpnet.tar.xz |
lpnet github/rei/lpnet rei/lpnet
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
Diffstat (limited to '')
-rw-r--r-- | synapse/storage/databases/main/roommember.py | 10 |
1 files 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 |