From fdbd6d9e25d27450a6becebd5068457b22b1a9b7 Mon Sep 17 00:00:00 2001 From: Balaji Ganapathy Date: Tue, 20 Aug 2024 22:23:09 -0700 Subject: [PATCH] fix the streamlit with updated dictionary keys --- src/streamlit_helper.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/streamlit_helper.py b/src/streamlit_helper.py index 9703981..051894f 100644 --- a/src/streamlit_helper.py +++ b/src/streamlit_helper.py @@ -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: