Fix unsupported games appearing in game hubs

Fixes #449
This commit is contained in:
rubenwardy
2023-06-27 20:41:07 +01:00
parent 870efc7fbe
commit 86565a0384
2 changed files with 3 additions and 3 deletions

View File

@@ -175,7 +175,7 @@ class QueryBuilder:
query = query.filter_by(author=author)
if self.game:
query = query.filter(Package.supported_games.any(game=self.game))
query = query.filter(Package.supported_games.any(game=self.game, supports=True))
for tag in self.tags:
query = query.filter(Package.tags.any(Tag.id == tag.id))