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

Open
opened 3 years ago by Seil0 · 0 comments
Seil0 commented 3 years ago
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 3 years ago
Seil0 added the
bug
label 3 years ago
Seil0 added the
hs issue
label 3 years ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.

Du besuchst diese Seite mit einem veralteten IPv4-Internetzugang. Möglicherweise treten in Zukunft Probleme mit der Erreichbarkeit und Performance auf. Bitte frage deinen Internetanbieter oder Netzwerkadministrator nach IPv6-Unterstützung.
You are visiting this site with an outdated IPv4 internet access. You may experience problems with accessibility and performance in the future. Please ask your ISP or network administrator for IPv6 support.
Weitere Infos | More Information
Klicke zum schließen | Click to close