summary refs log tree commit diff
path: root/synapse/storage/roommember.py
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/storage/roommember.py')
-rw-r--r--synapse/storage/roommember.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/roommember.py b/synapse/storage/roommember.py

index 8e941198be..b5d292a160 100644 --- a/synapse/storage/roommember.py +++ b/synapse/storage/roommember.py
@@ -97,7 +97,7 @@ class RoomMemberWorkerStore(EventsWorkerStore): txn.execute(sql, (room_id, 5)) res = {} for r in txn: - summary = res.setdefault(to_ascii[r[1]], {}) + summary = res.setdefault(to_ascii(r[1]), {}) summary['users'].append((to_ascii(r[0]), to_ascii(r[2]))) sql = ( @@ -109,7 +109,7 @@ class RoomMemberWorkerStore(EventsWorkerStore): " WHERE c.type = 'm.room.member' AND c.room_id = ? group by m.membership" ) - txn.execute(sql, (room_id, 5)) + txn.execute(sql, (room_id,)) for r in txn: summary['count'] = r[0]