try to fix sqyalchemy-error wieh deleting a forkrankmember

main
n0emis 2 years ago
parent 2f1347f341
commit 3a113c9baf
Signed by: n0emis
GPG Key ID: 00FAF748B777CF10

@ -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

Loading…
Cancel
Save