From 40873cbf4dcd1ed7193430d8a917f56779142878 Mon Sep 17 00:00:00 2001 From: pierrelefevre Date: Sun, 7 Jan 2024 22:22:38 +0000 Subject: [PATCH] Update date field in get_prediction_results function --- api/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/helpers.py b/api/helpers.py index be5f9d8..156ab21 100644 --- a/api/helpers.py +++ b/api/helpers.py @@ -74,7 +74,7 @@ def get_prediction_results(): # Group per day predictions_per_day = {} for prediction in predictions: - date = prediction["createdAt"].replace(hour=0, minute=0, second=0, microsecond=0) + date = prediction["listingCreatedAt"].replace(hour=0, minute=0, second=0, microsecond=0) if date not in predictions_per_day: predictions_per_day[date] = []