Alakbarli commited on
Commit
96eb56c
·
verified ·
1 Parent(s): 680e7f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -546,6 +546,12 @@ def main():
546
  # --- Everything below this line runs ONLY after successful login ---
547
  st.sidebar.success("✅ Connected to Google")
548
 
 
 
 
 
 
 
549
  # --- Session State Initialization ---
550
  state_keys = [
551
  'email_data', 'calendar_data', 'summarized', 'calendar_action',
 
546
  # --- Everything below this line runs ONLY after successful login ---
547
  st.sidebar.success("✅ Connected to Google")
548
 
549
+ if 'email_selected_date' not in st.session_state or st.session_state.email_selected_date is None:
550
+ st.session_state.email_selected_date = date.today()
551
+
552
+ if 'calendar_window_start' not in st.session_state or st.session_state.calendar_window_start is None:
553
+ st.session_state.calendar_window_start = datetime.datetime.utcnow()
554
+
555
  # --- Session State Initialization ---
556
  state_keys = [
557
  'email_data', 'calendar_data', 'summarized', 'calendar_action',