Update calendar_app.py
Browse files32 unmodified lines3334353636373839404142434462 unmodified lines10710810910511011111211332 unmodified lines
def 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): 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_str if str(date) not in self.reminders: self.reminders[str(date)] = [] self.reminders[str(date)].append(reminder)62 unmodified lines while True: print("\nCalendar Menu:") print("1. Add Reminder for 1 day") print("2. Add Reminder for date range (including weekends)") 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