if the semester has not started yet week=0 is the same as week=1 #6

Open
opened 2019-09-22 21:29:39 +02:00 by Seil0 · 0 comments
Owner

if the semester has not started yet week=0 is the first week of the semester and so is week=n, for n = weeks till semester begin.

This could be fixed by checking the weekOfYear, after parsing the data from the hs website, but it means additional delay since it has to be done on every update.

if (timetableWeekOfYear > currentWeekOfYear) {
   //calculateDifference
   diff = timetableWeekOfYear - currentWeekOfYear
}
// rerun the parsing process with "&week=${week + diff}"
if the semester has not started yet week=0 is the first week of the semester and so is week=n, for n = weeks till semester begin. This could be fixed by checking the weekOfYear, after parsing the data from the hs website, but it means additional delay since it has to be done on every update. ```kotlin if (timetableWeekOfYear > currentWeekOfYear) { //calculateDifference diff = timetableWeekOfYear - currentWeekOfYear } // rerun the parsing process with "&week=${week + diff}" ```
Seil0 self-assigned this 2019-09-22 21:29:39 +02:00
Seil0 added the
bug
label 2019-09-22 21:29:39 +02:00
Seil0 added the
hs issue
label 2019-09-22 21:35:58 +02:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Seil0/TheCitadelofRicks#6
No description provided.