Skip to content

Commit f284ef2

Browse files
Copilotgantoine
andauthored
fix: treat libretro-matched roms as identified
Agent-Logs-Url: https://github.com/rommapp/romm/sessions/9cc2e55e-af48-40bd-b2e9-492b6fd6046a Co-authored-by: gantoine <3247106+gantoine@users.noreply.github.com>
1 parent 5b6a48c commit f284ef2

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

backend/models/rom.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,7 @@ def is_unidentified(self) -> bool:
373373
and not self.flashpoint_id
374374
and not self.hltb_id
375375
and not self.gamelist_id
376+
and not self.libretro_id
376377
)
377378

378379
@property

backend/tests/models/test_rom.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,10 @@
44
def test_rom(rom: Rom):
55
assert rom.fs_path == "test_platform_slug/roms"
66
assert rom.full_path == "test_platform_slug/roms/test_rom.zip"
7+
8+
9+
def test_rom_with_libretro_match_is_identified(rom: Rom):
10+
rom.libretro_id = "abc123"
11+
12+
assert rom.is_unidentified is False
13+
assert rom.is_identified is True

0 commit comments

Comments
 (0)