Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,8 @@ def main():
|
|
20 |
cal = create_calendar(year, month)
|
21 |
|
22 |
st.write("Choose a day to schedule an appointment:")
|
23 |
-
|
|
|
24 |
hour = st.selectbox("Hour", [str(i).zfill(2) for i in range(0, 24)])
|
25 |
minute = st.selectbox("Minute", [str(i).zfill(2) for i in range(0, 60)])
|
26 |
duration = st.selectbox("Duration (hours)", [0.5, 1])
|
|
|
20 |
cal = create_calendar(year, month)
|
21 |
|
22 |
st.write("Choose a day to schedule an appointment:")
|
23 |
+
day_options = [day.day for week in cal for day in week if day.month == month]
|
24 |
+
day = st.selectbox("Day", day_options)
|
25 |
hour = st.selectbox("Hour", [str(i).zfill(2) for i in range(0, 24)])
|
26 |
minute = st.selectbox("Minute", [str(i).zfill(2) for i in range(0, 60)])
|
27 |
duration = st.selectbox("Duration (hours)", [0.5, 1])
|