Skip to content

Commit

Permalink
fix: correct filter condition for retrieving collections associated w…
Browse files Browse the repository at this point in the history
…ith a ROM ID
  • Loading branch information
zurdi15 committed Dec 5, 2024
1 parent 014427e commit c6039cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/handler/database/collections_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def get_collections_by_rom_id(
self, rom_id: int, session: Session = None
) -> list[Collection]:
return session.scalars(
select(Collection).filter(Collection.roms.contains([rom_id]))
select(Collection).filter(Collection.roms.contains(rom_id))
).all()

@begin_session
Expand Down

0 comments on commit c6039cc

Please sign in to comment.