From bdc6fc523511704202c2983ff2042decf0f6f689 Mon Sep 17 00:00:00 2001 From: DevOldSchool Date: Mon, 5 Jan 2026 13:05:13 +1000 Subject: [PATCH] Trunk format fixes. --- backend/handler/database/roms_handler.py | 12 ++++++------ backend/tests/endpoints/test_rom.py | 2 +- .../src/components/Details/Info/GameInfo.vue | 4 +++- .../AppBar/common/FilterDrawer/Base.vue | 18 +++++++++++++----- 4 files changed, 23 insertions(+), 13 deletions(-) diff --git a/backend/handler/database/roms_handler.py b/backend/handler/database/roms_handler.py index 6e9b9bee1..9078f7fce 100644 --- a/backend/handler/database/roms_handler.py +++ b/backend/handler/database/roms_handler.py @@ -463,12 +463,12 @@ class DBRomsHandler(DBBaseHandler): return query.filter(op(Rom.languages, values, session=session)) def filter_by_player_counts( - self, - query: Query, - *, - session: Session, - values: Sequence[str], - match_all: bool = False, + self, + query: Query, + *, + session: Session, + values: Sequence[str], + match_all: bool = False, ) -> Query: return query.filter(RomMetadata.player_count.in_(values)) diff --git a/backend/tests/endpoints/test_rom.py b/backend/tests/endpoints/test_rom.py index 60cfc6761..5d2de122b 100644 --- a/backend/tests/endpoints/test_rom.py +++ b/backend/tests/endpoints/test_rom.py @@ -88,7 +88,7 @@ def test_update_rom( "genres": '[{"id": 5, "name": "Shooter"}, {"id": 8, "name": "Platform"}, {"id": 31, "name": "Adventure"}]', "franchises": '[{"id": 756, "name": "Metroid"}]', "collections": '[{"id": 243, "name": "Metroid"}, {"id": 6240, "name": "Metroid Prime"}]', - "player_count": '1', + "player_count": "1", "expansions": "[]", "dlcs": "[]", "companies": '[{"id": 203227, "company": {"id": 70, "name": "Nintendo"}}, {"id": 203307, "company": {"id": 766, "name": "Retro Studios"}}]', diff --git a/frontend/src/components/Details/Info/GameInfo.vue b/frontend/src/components/Details/Info/GameInfo.vue index dbb4e4863..c51ddd09e 100644 --- a/frontend/src/components/Details/Info/GameInfo.vue +++ b/frontend/src/components/Details/Info/GameInfo.vue @@ -224,7 +224,9 @@ function onFilterClick(filter: FilterType, value: string) {