0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-15 01:23:51 +01:00

LESS THAN

This commit is contained in:
Erik Johnston 2015-10-22 16:18:35 +01:00
parent 232beb3a3c
commit fb0fecd0b9

View file

@ -48,7 +48,8 @@ class SearchStore(SQLBaseStore):
args = [] args = []
# Make sure we don't explode because the person is in too many rooms. # Make sure we don't explode because the person is in too many rooms.
if len(room_ids) > 500: # We filter the results regardless.
if len(room_ids) < 500:
clauses.append( clauses.append(
"room_id IN (%s)" % (",".join(["?"] * len(room_ids)),) "room_id IN (%s)" % (",".join(["?"] * len(room_ids)),)
) )