Removed print
This commit is contained in:
parent
bdbca9bbc3
commit
2766866f95
1 changed files with 0 additions and 2 deletions
|
@ -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],
|
||||||
|
|
Reference in a new issue