James McCool commited on
Commit
a88c238
·
1 Parent(s): 0f5bf62

Update date input defaults in app.py to enhance user experience. Changed the start date to 30 days prior to the maximum date and ensured proper date formatting for both start and end date inputs. This improves the clarity and usability of date selection for users.

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -44,16 +44,16 @@ with st.sidebar:
44
  with col1:
45
  start_date = st.date_input(
46
  "Start Date",
47
- value=(max_date - timedelta(days=365)),
48
- min_value=min_date,
49
- max_value=max_date
50
  )
51
  with col2:
52
  end_date = st.date_input(
53
  "End Date",
54
- value=max_date,
55
- min_value=min_date,
56
- max_value=max_date
57
  )
58
 
59
  selected_team = st.selectbox(
 
44
  with col1:
45
  start_date = st.date_input(
46
  "Start Date",
47
+ value=max_date.date() - timedelta(days=30),
48
+ min_value=min_date.date(),
49
+ max_value=max_date.date()
50
  )
51
  with col2:
52
  end_date = st.date_input(
53
  "End Date",
54
+ value=max_date.date(),
55
+ min_value=min_date.date(),
56
+ max_value=max_date.date()
57
  )
58
 
59
  selected_team = st.selectbox(