Skip to content

Commit fcd51a6

Browse files
committed
if else clause removed
1 parent 6dda886 commit fcd51a6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/pvsite_forecast.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,8 @@ def pvsite_forecast_page():
129129
timezone_selected = st.sidebar.selectbox(
130130
"Select timezone", ["UTC", "Asia/Calcutta"]
131131
)
132-
if timezone_selected == "UTC":
133-
timezone_selected = timezone.utc
134-
else:
135-
timezone_selected = ZoneInfo(timezone_selected)
132+
133+
timezone_selected = ZoneInfo(timezone_selected)
136134

137135
day_after_tomorrow = datetime.today() + timedelta(days=3)
138136
starttime = st.sidebar.date_input(

0 commit comments

Comments
 (0)