MonsterBoyTabs commited on
Commit
fc4345e
·
verified ·
1 Parent(s): ff8dd7e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -20,7 +20,14 @@ days = list(st.session_state.tasks.keys())
20
  st.sidebar.header("🗓️ Calendar")
21
  current_date = datetime.now()
22
  st.sidebar.markdown(f"### {current_date.strftime('%B %Y')}")
23
- st.sidebar.text(calendar.month(current_date.year, current_date.month))
 
 
 
 
 
 
 
24
 
25
  # Motivational Quotes
26
  quotes = [
@@ -77,7 +84,7 @@ for i, day in enumerate(days):
77
  )
78
  new_tags = st.multiselect(
79
  "Tags",
80
- options=["Study", "Homework", "Project", "Personal"],
81
  default=tags,
82
  key=f"tags_{day}_{task_idx}"
83
  )
 
20
  st.sidebar.header("🗓️ Calendar")
21
  current_date = datetime.now()
22
  st.sidebar.markdown(f"### {current_date.strftime('%B %Y')}")
23
+
24
+ # Display the correct calendar for the current month and year
25
+ cal = calendar.monthcalendar(current_date.year, current_date.month)
26
+ calendar_text = ""
27
+ for week in cal:
28
+ week_str = " ".join(f"{day:2}" if day != 0 else " " for day in week)
29
+ calendar_text += week_str + "\n"
30
+ st.sidebar.text(calendar_text)
31
 
32
  # Motivational Quotes
33
  quotes = [
 
84
  )
85
  new_tags = st.multiselect(
86
  "Tags",
87
+ options=["Study", "Homework", "Project", "Personal", "Assignment"], # Added "Assignment"
88
  default=tags,
89
  key=f"tags_{day}_{task_idx}"
90
  )