Skip to content

Commit be3615b

Browse files
committed
outer join romfile on by_hash call
1 parent af0d160 commit be3615b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/handler/database/roms_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1116,4 +1116,4 @@ def get_rom_by_hash(
11161116
return None
11171117

11181118
# Return the first ROM matching any of the provided hash values
1119-
return session.scalar(query.filter(or_(*filters)).limit(1))
1119+
return session.scalar(query.outerjoin(Rom.files).filter(or_(*filters)).limit(1))

0 commit comments

Comments
 (0)