Update calendar_app.py
Browse files32 unmodified lines3334353637383962 unmodified lines10210310410510610710832 unmodified linesdef add_daterange(self, date_start, date_end, reminder):"""Add a reminder for a date range."""for date in range(date_start, int(date_end)+1):if str(date) not in self.reminders:self.reminders[str(date)] = []self.reminders[str(date)].append(reminder)62 unmodified lineswhile True:print("\nCalendar Menu:")print("1. Add Reminder for 1 day")print("2. Add Reminder for date range (including weekends)")print("3. Show All Past and Future Reminders")print("4. Show All Future Reminders")print("5. Show Reminders for Specific Day")32 unmodified lines33343536373839404142434462 unmodified lines10710810911011111211332 unmodified linesdef add_daterange(self, date_start, date_end, reminder):"""Add a reminder for a date range."""date_yyyymm = date_start[:-2]date_start_day = int(date_start[-2:])date_end_day = int(date_start[-2:])for day_int in range(date_start_day, date_end_day+1):day_str = f"{day_int:02d}"date = str(date_yyyymm)+day_strif str(date) not in self.reminders:self.reminders[str(date)] = []self.reminders[str(date)].append(reminder)62 unmodified lineswhile True:print("\nCalendar Menu:")print("1. Add Reminder for 1 day")print("2. Add Reminder for date range (in the same month, including weekends)")print("3. Show All Past and Future Reminders")print("4. Show All Future Reminders")print("5. Show Reminders for Specific Day")
calendar_app.py+7-2