Add rpc method to delete locks

This commit is contained in:
Matthias
2021-03-01 07:51:33 +01:00
parent bba9b9e819
commit 3d65ba2dcb
3 changed files with 43 additions and 3 deletions

View File

@@ -765,6 +765,7 @@ class PairLock(_DECL_BASE):
def to_json(self) -> Dict[str, Any]:
return {
'id': self.id,
'pair': self.pair,
'lock_time': self.lock_time.strftime(DATETIME_PRINT_FORMAT),
'lock_timestamp': int(self.lock_time.replace(tzinfo=timezone.utc).timestamp() * 1000),