awacke1 commited on
Commit
165dfb2
·
1 Parent(s): 52b5125

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- day = st.selectbox("Day", [day[0].day for week in cal for day in week if day[0].month == month])
 
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])