From d8a9cb1e4bf45cbd31ee51f12eac0df514f80164 Mon Sep 17 00:00:00 2001 From: Zurdi Date: Fri, 5 Jul 2024 20:59:14 +0200 Subject: [PATCH] fixed filter roms both by platform and collection --- backend/handler/database/roms_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/handler/database/roms_handler.py b/backend/handler/database/roms_handler.py index 44897ecc5..bb69cead2 100644 --- a/backend/handler/database/roms_handler.py +++ b/backend/handler/database/roms_handler.py @@ -56,7 +56,7 @@ class DBRomsHandler(DBBaseHandler): if platform_id: data = data.filter(Rom.platform_id == platform_id) - elif collection_id: + if collection_id: collection = ( session.query(Collection) .filter(Collection.id == collection_id)