Spaces:
Sleeping
Sleeping
Update app/internal_loads.py
Browse files- app/internal_loads.py +6 -2
app/internal_loads.py
CHANGED
@@ -972,9 +972,11 @@ def display_schedules_tab():
|
|
972 |
weekday_values = []
|
973 |
for hour, col in enumerate(cols):
|
974 |
with col:
|
|
|
|
|
975 |
val = vertical_slider(
|
976 |
label="",
|
977 |
-
key=
|
978 |
height=150,
|
979 |
step=0.1,
|
980 |
min_value=0.0,
|
@@ -993,9 +995,11 @@ def display_schedules_tab():
|
|
993 |
weekend_values = []
|
994 |
for hour, col in enumerate(cols):
|
995 |
with col:
|
|
|
|
|
996 |
val = vertical_slider(
|
997 |
label="",
|
998 |
-
key=
|
999 |
height=150,
|
1000 |
step=0.1,
|
1001 |
min_value=0.0,
|
|
|
972 |
weekday_values = []
|
973 |
for hour, col in enumerate(cols):
|
974 |
with col:
|
975 |
+
key = f"weekday_{hour}"
|
976 |
+
default_value = st.session_state.get(key)
|
977 |
val = vertical_slider(
|
978 |
label="",
|
979 |
+
key=key,
|
980 |
height=150,
|
981 |
step=0.1,
|
982 |
min_value=0.0,
|
|
|
995 |
weekend_values = []
|
996 |
for hour, col in enumerate(cols):
|
997 |
with col:
|
998 |
+
key = f"weekend_{hour}"
|
999 |
+
default_value = st.session_state.get(key)
|
1000 |
val = vertical_slider(
|
1001 |
label="",
|
1002 |
+
key=key,
|
1003 |
height=150,
|
1004 |
step=0.1,
|
1005 |
min_value=0.0,
|