mirror of
https://github.com/rommapp/romm.git
synced 2026-06-27 22:35:57 +00: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