fixed "x in y" statement

This commit is contained in:
Oscar Krause 2023-01-23 07:43:39 +01:00
parent e0736b6199
commit 50c996f199

View File

@ -62,7 +62,7 @@ class Origin(Base):
if origin_refs is None:
deletions = session.query(Origin).delete()
else:
deletions = session.query(Origin).filter(Origin.origin_ref in origin_refs).delete()
deletions = session.query(Origin).filter(Origin.origin_ref.in_(origin_refs)).delete()
session.commit()
session.close()
return deletions