Skip to content

Commit 9063dbf

Browse files
authored
Merge pull request #222 from Azulinho/next_release
fix check for backtesting.log
2 parents e8531ff + 25aabdb commit 9063dbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/prove-backtesting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ def parse_backtesting_line(
607607
"max_profit_on_clean_wins",
608608
]:
609609
# drop any results containing losses, stales, or holds
610-
if 0 not in [l, s, h] or w == 0:
610+
if sum([l, s, h]) > 0 or w == 0:
611611
return (False, {})
612612

613613
blob: Dict[str, Any] = json.loads(_cfg)

0 commit comments

Comments
 (0)