From 9f2aa4ce1737e20c906ef05eed0143159c17e597 Mon Sep 17 00:00:00 2001 From: extreme4all <40169115+extreme4all@users.noreply.github.com> Date: Tue, 5 Mar 2024 23:36:48 +0100 Subject: [PATCH] pop instead of get --- src/app/views/response/prediction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/views/response/prediction.py b/src/app/views/response/prediction.py index 20802c1..a998d61 100644 --- a/src/app/views/response/prediction.py +++ b/src/app/views/response/prediction.py @@ -17,7 +17,7 @@ def from_data(self, data: dict, breakdown: bool): player_data = { "player_id": data.pop("id"), "player_name": data.pop("name"), - "prediction_label": data.get("prediction", "").lower(), + "prediction_label": data.pop("prediction").lower(), "prediction_confidence": data.pop("predicted_confidence") / 100.0, "created": data.pop("created"), "predictions_breakdown": {