From ca9d545becb6f8591279c1e1ff2c2e492186a2dc Mon Sep 17 00:00:00 2001 From: Ace Date: Sat, 2 Mar 2019 19:18:34 +0100 Subject: [PATCH] Fixed a small typo --- Calendar/E-Paper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Calendar/E-Paper.py b/Calendar/E-Paper.py index 436e77b..47f5bcd 100644 --- a/Calendar/E-Paper.py +++ b/Calendar/E-Paper.py @@ -202,7 +202,7 @@ def main(): # print(fix_e_2) ical = Calendar(fix_e_2) for events in ical.events: - if re.search('RRULE',str(events)) is not None: + if re.search('RRULE',str(events)) is not None: r = re.search('RRULE:(.+?)\n',str(events)) r_start = re.search('DTSTART:(.+?)\n',str(events)) if time.now().month == 12: @@ -217,7 +217,7 @@ def main(): events_this_month.append(i.day) # uncomment this line to see fetched recurring events #print ("Appended recurring event: " + events.name + " on " + str(time.now().year) + " " + time.now().strftime('%m')+ " " + str(i.day).zfill(2)) - else: + else: if events.begin.date().month == today.month: if int((events.begin).format('D')) not in events_this_month: events_this_month.append(int((events.begin).format('D')))