Skip to content

Commit

Permalink
fix: typecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
zurdi15 committed Jan 3, 2025
1 parent 8ad86f2 commit 08de3b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions backend/handler/metadata/ss_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,7 @@ async def get_matched_roms_by_id(self, ss_id: int) -> list[SSGamesRom]:
async def get_matched_roms_by_name(
self, search_term: str, platform_ss_id: int
) -> list[SSGamesRom]:
# TODO: migrate to put all SS platform IDs
platform_ss_id = 9
# TODO: migrate to put all SS platform IDs in the database
if not SS_API_ENABLED:
return []

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/common/Game/Dialog/MatchRom.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const isMobyFiltered = ref(true);
const isSSFiltered = ref(true);
const computedAspectRatio = computed(() => {
const ratio =
platfotmsStore.getAspectRatio(rom.value?.platform_id) ||
platfotmsStore.getAspectRatio(rom.value?.platform_id ?? -1) ||
galleryViewStore.defaultAspectRatioCover;
return parseFloat(ratio.toString());
});
Expand Down

0 comments on commit 08de3b3

Please sign in to comment.