From 50c996f199ba6adeb02541e1a72d3fe22dd16515 Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Mon, 23 Jan 2023 07:43:39 +0100 Subject: [PATCH] fixed "x in y" statement --- app/orm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/orm.py b/app/orm.py index d3c795e..a6e5974 100644 --- a/app/orm.py +++ b/app/orm.py @@ -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