Removed print

This commit is contained in:
Edgar P. Burkhart 2020-09-21 19:10:14 +02:00
parent bdbca9bbc3
commit 2766866f95
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -100,7 +100,6 @@ class GoogleSheetsCalParser(HTMLParser):
def handle_data(self, data): def handle_data(self, data):
if self.inDate: if self.inDate:
self.date[self.column] = dt.strptime(data, '%d-%b-%y').date() self.date[self.column] = dt.strptime(data, '%d-%b-%y').date()
print(self.date[self.column])
elif self.inCell and data not in ['', '-']: elif self.inCell and data not in ['', '-']:
times = [time.fromisoformat(TIMETABLE[(self.row - 2) % 12 - 2][1]), times = [time.fromisoformat(TIMETABLE[(self.row - 2) % 12 - 2][1]),
time.fromisoformat(TIMETABLE[(self.row - 2) % 12 - 2 + self.rowspan][0])] time.fromisoformat(TIMETABLE[(self.row - 2) % 12 - 2 + self.rowspan][0])]
@ -115,7 +114,6 @@ class GoogleSheetsCalParser(HTMLParser):
self.event.add('uid', f'{self.row}x{self.column}') self.event.add('uid', f'{self.row}x{self.column}')
self.event.add('summary', data) self.event.add('summary', data)
self.event.add('dtstamp', dt.now()) self.event.add('dtstamp', dt.now())
print(self.row, self.column, times)
self.event.add('dtstart', dt.combine(self.date[self.column], times[0], self.event.add('dtstart', dt.combine(self.date[self.column], times[0],
pytz.timezone('Europe/Paris'))) pytz.timezone('Europe/Paris')))
self.event.add('dtend', dt.combine(self.date[self.column], times[1], self.event.add('dtend', dt.combine(self.date[self.column], times[1],