Simplify pairlock querying

This commit is contained in:
Matthias
2023-03-16 06:48:12 +01:00
parent ae361e1d5d
commit e579ff9532
4 changed files with 13 additions and 8 deletions

View File

@@ -172,6 +172,6 @@ class PairLocks():
Return all locks, also locks with expired end date
"""
if PairLocks.use_db:
return PairLock.session.scalars(select(PairLock)).all()
return PairLock.get_all_locks().all()
else:
return PairLocks.locks