From 85bb175931552bd31bbb9563ba8477598b40a1f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Fri, 11 Sep 2020 00:49:24 +0200 Subject: [PATCH] be nince --- strat/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/strat/main.py b/strat/main.py index 61a1782..da5cebe 100644 --- a/strat/main.py +++ b/strat/main.py @@ -9,6 +9,8 @@ def avg(ls: list) -> int: def decision(h1, h2): + if 1 not in h2: + return 0 if avg(h2) > 0.51: return 1 else: