mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Fix small bug in case of duplicate locks
This commit is contained in:
parent
71410a5a1e
commit
9999017953
|
@ -747,7 +747,7 @@ class PairLock(_DECL_BASE):
|
|||
func.datetime(PairLock.lock_end_time) >= now,
|
||||
# Only active locks
|
||||
PairLock.active.is_(True),
|
||||
).scalar() is not None
|
||||
).first() is not None
|
||||
|
||||
def to_json(self) -> Dict[str, Any]:
|
||||
return {
|
||||
|
|
Loading…
Reference in New Issue
Block a user