From cc0995e43ab4759df30eb9e3623dbd00c0bee7ed Mon Sep 17 00:00:00 2001 From: Yannik Schmidt Date: Mon, 3 Aug 2020 01:28:44 +0200 Subject: [PATCH] line length and error on assert fail --- python/httpAPI.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/httpAPI.py b/python/httpAPI.py index f4cf375..4c51195 100644 --- a/python/httpAPI.py +++ b/python/httpAPI.py @@ -21,9 +21,9 @@ def run(port, parser): def health(): try: count, avgPred = db.check() - return ("Rounds: {}, AvgPrediction (lower than 0.5 is good): {}".format(count, avgPred), 200) + return ("Rounds: {}, PredQuality: (lower than 0.5 is good): {}".format(count, avgPred), 200) except AssertionError as e: - return ("{}".format(e), 200) + return ("{}".format(e), 500) @app.route('/get-player-rating-msg') def getPlayer():