Browse Source

Remove debug

rorist 9 months ago
parent
commit
51b4eb1be0
1 changed files with 4 additions and 4 deletions
  1. 4 4
      cal.py

+ 4 - 4
cal.py

@@ -35,7 +35,7 @@ calendars = [
 #
 
 def get_recurrences(cal_name, dt_start, dt_end, evt):
-    print('get_recurrences')
+    #print('get_recurrences')
     rrule = evt.get('rrule')
     byday = rrule.get('byday')
     freq = rrule.get('freq')[0]
@@ -68,7 +68,7 @@ def get_recurrences(cal_name, dt_start, dt_end, evt):
 
 def get_event(cal_name, dt_start, dt_end, evt):
     summary = evt.get('summary')
-    print('get_event=' + summary)
+    #print('get_event=' + summary)
     location = evt.get('location')
     description = evt.get('description')
     dt_start = dt_start.to('Europe/Zurich')
@@ -99,7 +99,7 @@ def get_calendar(url):
     try:
         cal_obj = icalendar.Calendar.from_ical(cal_data)
         cal_name = cal_obj.get('x-wr-calname')
-        print('get_calendar=' + cal_name)
+        #print('get_calendar=' + cal_name)
         recent = arrow.now().floor('day').replace(days=-30)  # FIXME: must be yesterday ?
         for e in cal_obj.walk():
             if e.name != 'VEVENT':
@@ -128,7 +128,7 @@ def get_calendar(url):
     return events
 
 def get_data():
-    print('get_data')
+    #print('get_data')
 
     # Get all events
     events = []