mirror of
https://github.com/rommapp/romm.git
synced 2026-06-27 22:35:57 +00:00
fix: include browser games in playable filter
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user