fix(multiplayer): fix fliters

This commit is contained in:
chenjintang-shrimp
2025-08-06 06:55:45 +00:00
parent 2b4d366e3e
commit 84dac34a05

View File

@@ -40,11 +40,14 @@ async def get_all_rooms(
room.room.host.user_id if room.room.host is not None else 0
) != current_user.id:
continue
else:
if (
room.room.host.user_id if room.room.host is not None else 0
) != current_user.id:
else:
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:
continue
resp_list.append(await RoomResp.from_hub(room))