Skip to content

Commit

Permalink
Merge pull request #136 from balugans/main
Browse files Browse the repository at this point in the history
fix the streamlit with updated dictionary keys
  • Loading branch information
ryansurf authored Aug 21, 2024
2 parents 1a866f5 + fdbd6d9 commit 86cae5c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/streamlit_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ def graph_data(report_dict, graph_type="Height/Period :ocean:"):
forecast["date"] for forecast in report_dict["Forecast"]
]
forecasted_heights = [
forecast["height"] for forecast in report_dict["Forecast"]
forecast["surf height"] for forecast in report_dict["Forecast"]
]
forecasted_periods = [
forecast["period"] for forecast in report_dict["Forecast"]
forecast["swell period"] for forecast in report_dict["Forecast"]
]
forecasted_directions = [
forecast["direction"] for forecast in report_dict["Forecast"]
forecast["swell direction"] for forecast in report_dict["Forecast"]
]
# table
if graph_type == "Height/Period :ocean:" or graph_type is None:
Expand Down

0 comments on commit 86cae5c

Please sign in to comment.