From 3a113c9bafc1782aba44149e43d2460f9ce12c29 Mon Sep 17 00:00:00 2001 From: Ember 'n0emis' Keske Date: Wed, 27 Jul 2022 14:12:02 +0200 Subject: [PATCH] try to fix sqyalchemy-error wieh deleting a forkrankmember --- fieldpoc/routing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fieldpoc/routing.py b/fieldpoc/routing.py index 962b3dc..185eb8b 100644 --- a/fieldpoc/routing.py +++ b/fieldpoc/routing.py @@ -278,7 +278,7 @@ class YwsdForkRankMemberModel(ForkRankMemberModel): conn.execute( ForkRank.member_table.update() .where( - _and( + sqlalchemy.and_( ForkRank.member_table.c.forkrank_id == self.diffsync.get("forkrank", self.forkrank).forkrank_id, ForkRank.member_table.c.extension_id @@ -293,7 +293,7 @@ class YwsdForkRankMemberModel(ForkRankMemberModel): with self.diffsync.engine.connect() as conn: conn.execute( ForkRank.member_table.delete().where( - _and( + sqlalchemy.and_( ForkRank.member_table.c.forkrank_id == self.diffsync.get("forkrank", self.forkrank).forkrank_id, ForkRank.member_table.c.extension_id