more cleanup

This commit is contained in:
Georges-Antoine Assi
2026-05-25 11:07:03 -04:00
parent 9a87348c22
commit b9b82c751b
3 changed files with 8 additions and 3 deletions

View File

@@ -202,12 +202,11 @@ class DBRomsHandler(DBBaseHandler):
return []
return session.scalars(query.filter(Rom.id.in_(ids))).all()
@begin_session
def get_sibling_ids_for_roms(
self,
rom_ids: list[int],
*,
session: Session = None, # type: ignore
session: Session,
) -> dict[int, list[int]]:
"""Return {rom_id: [sibling_rom_id, ...]} for the given rom IDs.