Skip to content

Commit

Permalink
fix list index bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dfulu committed Jul 11, 2024
1 parent 052a6dc commit 4cd2c4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/forecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def forecast_page():
)

# Get effective capacity of selected GSP
capacity_mw = locations[gsp_ids.get_index(gsp_id)].installed_capacity_mw
capacity_mw = locations[gsp_ids.index(gsp_id)].installed_capacity_mw

# Find recent available models
available_models = get_recent_available_model_names(session)
Expand Down

0 comments on commit 4cd2c4f

Please sign in to comment.