Don't reuse variable

This commit is contained in:
Matthias
2023-02-21 06:49:15 +01:00
parent b65cff0adc
commit 764001a4c2
2 changed files with 3 additions and 3 deletions

View File

@@ -133,8 +133,8 @@ class PairLocks():
PairLock.query.session.commit()
else:
# used in backtesting mode; don't show log messages for speed
locks = PairLocks.get_pair_locks(None)
for lock in locks:
locksb = PairLocks.get_pair_locks(None)
for lock in locksb:
if lock.reason == reason:
lock.active = False