intend if to be clearer

This commit is contained in:
Matthias 2019-08-04 10:38:37 +02:00
parent c4e30862ee
commit 4d1ce8178c
1 changed files with 2 additions and 2 deletions

View File

@ -93,8 +93,8 @@ def load_trades_from_db(db_url: str) -> pd.DataFrame:
t.close_date.replace(tzinfo=pytz.UTC) if t.close_date else None,
t.calc_profit(), t.calc_profit_percent(),
t.open_rate, t.close_rate, t.amount,
t.close_date.timestamp() - t.open_date.timestamp()
if t.close_date else None,
(t.close_date.timestamp() - t.open_date.timestamp()
if t.close_date else None),
t.sell_reason,
t.fee_open, t.fee_close,
t.open_rate_requested,