Fix filename generation

This commit is contained in:
froggleston 2022-04-19 13:00:09 +01:00
parent 165f59325f
commit aa5984930d

View File

@ -60,8 +60,8 @@ def store_backtest_signal_candles(recordfilename: Path, candles: Dict[str, Dict]
else:
filename = Path.joinpath(
recordfilename.parent,
f'{recordfilename.stem}-{datetime.now().strftime("%Y-%m-%d_%H-%M-%S")}_signals'
).with_suffix(recordfilename.suffix)
f'{recordfilename.stem}-{datetime.now().strftime("%Y-%m-%d_%H-%M-%S")}_signals.pkl'
)
file_dump_pickle(filename, candles)