From 8517fb9aca30b147a313bb06fc18207febcdda45 Mon Sep 17 00:00:00 2001 From: Bergbok <66174189+Bergbok@users.noreply.github.com> Date: Wed, 11 Mar 2026 16:11:08 +0200 Subject: [PATCH] fix: include browser games in playable filter --- backend/handler/database/roms_handler.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/handler/database/roms_handler.py b/backend/handler/database/roms_handler.py index ea82b0e2e..38ff030db 100644 --- a/backend/handler/database/roms_handler.py +++ b/backend/handler/database/roms_handler.py @@ -301,7 +301,10 @@ class DBRomsHandler(DBBaseHandler): def _filter_by_playable(self, query: Query, value: bool) -> Query: """Filter based on whether the rom is playable on supported platforms.""" - predicate = Platform.slug.in_(EJS_SUPPORTED_PLATFORMS) + predicate = or_( + Platform.slug.in_(EJS_SUPPORTED_PLATFORMS), + Platform.slug == UPS.BROWSER + ) if not value: predicate = not_(predicate) return query.join(Platform).filter(predicate)