Skip to content

Commit

Permalink
take temperature av of first 24 hr
Browse files Browse the repository at this point in the history
  • Loading branch information
amit9838 committed Dec 8, 2024
1 parent cb6e34a commit dd4f989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontendHourlyDetails.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def create_stack_page(self, page_name):
# Hourly Page
if page_name == "hourly":
desc_label.set_text(C_("temperature", "Day Max •"))
val_label.set_text(str(max(hourly_data.temperature_2m.get("data"))) + "°")
val_label.set_text(str(max(hourly_data.temperature_2m.get("data")[:24])) + "°")
unit_label.set_text("")

# Precipitation page
Expand Down

0 comments on commit dd4f989

Please sign in to comment.