From e7cefa168e6192ee235cbc439132c5edca097e94 Mon Sep 17 00:00:00 2001 From: Sheppy Date: Mon, 3 Aug 2020 01:23:23 +0200 Subject: [PATCH] fix wrong return code (?!?) --- python/httpAPI.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/httpAPI.py b/python/httpAPI.py index 7f793fd..f4cf375 100644 --- a/python/httpAPI.py +++ b/python/httpAPI.py @@ -21,7 +21,7 @@ def run(port, parser): def health(): try: count, avgPred = db.check() - return ("Rounds: {}, AvgPrediction (lower than 0.5 is good): {}".format(count, avgPred), 500) + return ("Rounds: {}, AvgPrediction (lower than 0.5 is good): {}".format(count, avgPred), 200) except AssertionError as e: return ("{}".format(e), 200)