fix backtest --export format

reverts regression introduced in c623564
This commit is contained in:
Matthias Voppichler 2018-03-26 20:28:51 +02:00
parent a2c3df3ac5
commit a182cab27f

View File

@ -196,7 +196,7 @@ class Backtesting(object):
records.append((pair, trade_entry[1],
row.date.strftime('%s'),
row2.date.strftime('%s'),
row.date, trade_entry[3]))
index, trade_entry[3]))
# For now export inside backtest(), maybe change so that backtest()
# returns a tuple like: (dataframe, records, logs, etc)
if record and record.find('trades') >= 0: