Skip to content

Commit

Permalink
Update pvsite_forecast.py
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
peterdudfield authored May 9, 2024
1 parent 89fa97a commit f2adaa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pvsite_forecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def pvsite_forecast_page():
unsafe_allow_html=True,
)
# get site_uuids from database
url = 'os.environ["SITES_DB_URL"]'
url = os.environ["SITES_DB_URL"]
connection = DatabaseConnection(url=url, echo=True)
with connection.get_session() as session:
site_uuids = get_all_sites(session=session)
Expand Down Expand Up @@ -185,4 +185,4 @@ def convert_df(df: pd.DataFrame):
data=csv,
file_name=f'site_forecast_{site_selection}_{now}.csv',
mime='text/csv',
)
)

0 comments on commit f2adaa2

Please sign in to comment.