From 854f056eaf83b478244b60da2ab1cef29d6e81e0 Mon Sep 17 00:00:00 2001 From: froggleston Date: Mon, 5 Dec 2022 16:16:36 +0000 Subject: [PATCH] Fix missing Path constructors --- freqtrade/optimize/optimize_reports.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/optimize/optimize_reports.py b/freqtrade/optimize/optimize_reports.py index 2ac0eed3d..87d2ce376 100644 --- a/freqtrade/optimize/optimize_reports.py +++ b/freqtrade/optimize/optimize_reports.py @@ -72,12 +72,12 @@ def _store_backtest_analysis_data( def store_backtest_signal_candles( recordfilename: Path, candles: Dict[str, Dict], dtappendix: str) -> Path: - return _store_backtest_analysis_data(recordfilename, candles, dtappendix, "signals") + return _store_backtest_analysis_data(Path(recordfilename), candles, dtappendix, "signals") def store_backtest_rejected_trades( recordfilename: Path, trades: Dict[str, Dict], dtappendix: str) -> Path: - return _store_backtest_analysis_data(recordfilename, trades, dtappendix, "rejected") + return _store_backtest_analysis_data(Path(recordfilename), trades, dtappendix, "rejected") def _get_line_floatfmt(stake_currency: str) -> List[str]: