Skip to content

Commit

Permalink
Revert back condition for open_since in Trade.__repr__
Browse files Browse the repository at this point in the history
  • Loading branch information
hroff-1902 committed Sep 13, 2019
1 parent c8d191a commit eda1ec6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion freqtrade/persistence.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ class Trade(_DECL_BASE):
ticker_interval = Column(Integer, nullable=True)

def __repr__(self):
open_since = self.open_date.strftime('%Y-%m-%d %H:%M:%S') if self.open_date else 'closed'
open_since = self.open_date.strftime('%Y-%m-%d %H:%M:%S') 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})')
Expand Down

0 comments on commit eda1ec6

Please sign in to comment.