Simplify is_pair_locked

This commit is contained in:
Matthias 2020-10-24 13:55:54 +02:00
parent 56975db2ed
commit 05be33ccd4

View File

@ -688,7 +688,7 @@ class PairLock(_DECL_BASE):
@staticmethod @staticmethod
def query_pair_locks(pair: Optional[str], now: datetime) -> Query: def query_pair_locks(pair: Optional[str], now: datetime) -> Query:
""" """
Get all locks for this pair Get all currently active locks for this pair
:param pair: Pair to check for. Returns all current locks if pair is empty :param pair: Pair to check for. Returns all current locks if pair is empty
:param now: Datetime object (generated via datetime.now(timezone.utc)). :param now: Datetime object (generated via datetime.now(timezone.utc)).
""" """