Better description for failed timetable entries

This commit is contained in:
Elias Müller 2023-06-20 21:25:39 +02:00
parent 5510d4735a
commit 298a702901
2 changed files with 4 additions and 4 deletions

View File

@ -28,13 +28,13 @@ class AppointmentDetails {
try { try {
subject = webuntisData.getSubjectsResponse.result.firstWhere((subject) => subject.id == timetableData.su[0].id); subject = webuntisData.getSubjectsResponse.result.firstWhere((subject) => subject.id == timetableData.su[0].id);
} catch(e) { } catch(e) {
subject = GetSubjectsResponseObject(0, "?", "Lesefehler", "?", true); subject = GetSubjectsResponseObject(0, "?", "Unbekannt", "?", true);
} }
try { try {
room = webuntisData.getRoomsResponse.result.firstWhere((room) => room.id == timetableData.ro[0].id); room = webuntisData.getRoomsResponse.result.firstWhere((room) => room.id == timetableData.ro[0].id);
} catch(e) { } catch(e) {
room = GetRoomsResponseObject(0, "?", "Lesefehler", true, "?"); room = GetRoomsResponseObject(0, "?", "Unbekannt", true, "?");
} }
showModalBottomSheet(context: context, builder: (context) => Column( showModalBottomSheet(context: context, builder: (context) => Column(

View File

@ -218,9 +218,9 @@ class _TimetableState extends State<Timetable> {
id: element, id: element,
startTime: _parseWebuntisTimestamp(element.date, element.startTime), startTime: _parseWebuntisTimestamp(element.date, element.startTime),
endTime: _parseWebuntisTimestamp(element.date, element.endTime), endTime: _parseWebuntisTimestamp(element.date, element.endTime),
subject: "Fehler", subject: "Änderung",
notes: element.info, notes: element.info,
location: 'Lesefehler', location: 'Unbekannt',
color: Theme.of(context).primaryColor, color: Theme.of(context).primaryColor,
startTimeZone: '', startTimeZone: '',
endTimeZone: '', endTimeZone: '',