mirror of
https://github.com/rommapp/romm.git
synced 2026-02-18 00:27:41 +01:00
outer join romfile on by_hash call
This commit is contained in:
@@ -1116,4 +1116,4 @@ class DBRomsHandler(DBBaseHandler):
|
||||
return None
|
||||
|
||||
# Return the first ROM matching any of the provided hash values
|
||||
return session.scalar(query.filter(or_(*filters)).limit(1))
|
||||
return session.scalar(query.outerjoin(Rom.files).filter(or_(*filters)).limit(1))
|
||||
|
||||
Reference in New Issue
Block a user