Skip to content

Commit

Permalink
Update date field in get_prediction_results function
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrelefevre committed Jan 7, 2024
1 parent 2ffe215 commit 40873cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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] = []

Expand Down

0 comments on commit 40873cb

Please sign in to comment.