fix wrong return code (?!?)

This commit is contained in:
2020-08-03 01:23:23 +02:00
parent 7f46c2d741
commit e7cefa168e

View File

@@ -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)