Make flake happy

This commit is contained in:
hroff-1902
2019-09-10 12:37:15 +03:00
parent e298e77319
commit 2081d7552f
2 changed files with 14 additions and 8 deletions

View File

@@ -211,7 +211,7 @@ class Trade(_DECL_BASE):
def __repr__(self):
open_since = (f"{arrow.get(self.open_date).strftime('%Y-%m-%d %H:%M:%S')} "
f"({arrow.get(self.open_date).humanize()})" ) if self.is_open else 'closed'
f"({arrow.get(self.open_date).humanize()})") if self.is_open else 'closed'
return (f'Trade(id={self.id}, pair={self.pair}, amount={self.amount:.8f}, '
f'open_rate={self.open_rate:.8f}, open_since={open_since})')