fix(multiplayer): fix fliters
This commit is contained in:
@@ -40,11 +40,14 @@ async def get_all_rooms(
|
|||||||
room.room.host.user_id if room.room.host is not None else 0
|
room.room.host.user_id if room.room.host is not None else 0
|
||||||
) != current_user.id:
|
) != current_user.id:
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
if (
|
|
||||||
room.room.host.user_id if room.room.host is not None else 0
|
|
||||||
) != current_user.id:
|
|
||||||
continue
|
continue
|
||||||
|
else:
|
||||||
|
if mode == "owned":
|
||||||
|
if (
|
||||||
|
room.room.host.user_id if room.room.host is not None else 0
|
||||||
|
) != current_user.id:
|
||||||
|
continue
|
||||||
if room.status != status:
|
if room.status != status:
|
||||||
continue
|
continue
|
||||||
resp_list.append(await RoomResp.from_hub(room))
|
resp_list.append(await RoomResp.from_hub(room))
|
||||||
|
|||||||
Reference in New Issue
Block a user