fix: include browser games in playable filter

This commit is contained in:
Bergbok
2026-03-11 16:11:08 +02:00
parent e651cfcf4a
commit 8517fb9aca

View File

@@ -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)