From 44d9d68fe4c3af62536cd8cbe1b21262783af18c Mon Sep 17 00:00:00 2001 From: "Casper V. Kristensen" Date: Sun, 7 Apr 2019 04:55:34 +0200 Subject: [PATCH] Round --- server/nightr/strategies/just_eat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/nightr/strategies/just_eat.py b/server/nightr/strategies/just_eat.py index aa074e9..1f550e2 100644 --- a/server/nightr/strategies/just_eat.py +++ b/server/nightr/strategies/just_eat.py @@ -33,7 +33,7 @@ def is_restaurant_open(name, open, close) -> Prediction: p.probability = 1 / 11 else: p.reasons.append(f"Our favorite pizza place, {name}, is closed.") - p.reasons.append(f"We can conclude from this, that there is {1 - (1/11)}% chance of it currently being night outside!") + p.reasons.append(f"We can conclude from this, that there is {1 - (1/11):.1f}% chance of it currently being night outside!") p.probability = round(1 - (1 / 11), 2) return p