try to fix sqyalchemy-error wieh deleting a forkrankmember
This commit is contained in:
parent
2f1347f341
commit
3a113c9baf
@ -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…
Reference in New Issue
Block a user