Skip to content

Commit

Permalink
Merge pull request #222 from Azulinho/next_release
Browse files Browse the repository at this point in the history
fix check for backtesting.log
  • Loading branch information
Azulinho authored Aug 9, 2023
2 parents e8531ff + 25aabdb commit 9063dbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/prove-backtesting.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ def parse_backtesting_line(
"max_profit_on_clean_wins",
]:
# drop any results containing losses, stales, or holds
if 0 not in [l, s, h] or w == 0:
if sum([l, s, h]) > 0 or w == 0:
return (False, {})

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

0 comments on commit 9063dbf

Please sign in to comment.