Added placeholder error timetable entry when parsing errors occur
This commit is contained in:
1 parent
1521056217
commit
38c0cfba9c
9 files changed
+97
-158
No files matched your search
@@ -200,14 +200,14 @@ class _TimetableState extends State<Timetable> {
|
||||
notes: element.activityType,
|
||||
color: _getEventColor(element.code, startTime, endTime),
|
||||
);
|
||||
} on Error catch(e) {
|
||||
log(e.toString());
|
||||
} catch(e) {
|
||||
return Appointment(
|
||||
id: element,
|
||||
startTime: _parseWebuntisTimestamp(element.date, element.startTime),
|
||||
endTime: _parseWebuntisTimestamp(element.date, element.endTime),
|
||||
subject: "ERROR",
|
||||
subject: "Fehler",
|
||||
notes: element.info,
|
||||
location: 'LOCATION',
|
||||
location: 'Lesefehler',
|
||||
color: Theme.of(context).primaryColor,
|
||||
startTimeZone: '',
|
||||
endTimeZone: '',
|
||||
|
||||
Reference in new issue
Block a user