Remove .query from pairlock

This commit is contained in:
Matthias
2023-03-15 21:19:36 +01:00
parent aa54b77702
commit 8865af9104
4 changed files with 11 additions and 10 deletions

View File

@@ -959,7 +959,7 @@ class RPC:
if pair:
locks = PairLocks.get_pair_locks(pair)
if lockid:
locks = PairLock.query.filter(PairLock.id == lockid).all()
locks = PairLock.session.scalar(select(PairLock).filter(PairLock.id == lockid)).all()
for lock in locks:
lock.active = False