Improve data + time parsing functionality

Now allows one to enter just one date or one date and time together.
This commit is contained in:
Xevion
2021-09-03 17:33:14 -05:00
parent 2621094b14
commit 1a6dea4513
3 changed files with 21 additions and 8 deletions

View File

@@ -141,6 +141,7 @@ class MainWindow(QMainWindow, Ui_MainWindow):
self.eventsView.setRowCount(len(events))
logger.debug(f'Populating table with {self.eventsView.rowCount()} events.')
for row, event in enumerate(events):
logger.debug(f'Event "{event.summary}" starts {event.start} and ends {event.end}')
event.fill_row(row, self.eventsView)
self.submitButton.setDisabled(len(self.readyEvents) < 0)