Commit Graph

20 Commits

Author SHA1 Message Date
Hannes Braun 8e3af696e0
Limit sending timetable requests in parallel to 3
Otherwise, the requests may fail (from my experience). Also we don't want to look suspicious (flooding their server with tons of requests at the same time).
2021-10-24 14:34:00 +02:00
Hannes Braun 993b8f6a71
Small improvements
- Improve formatting
- Fix some typos
- Mini code improvements
2021-10-24 14:34:00 +02:00
Hannes Braun 22f17d10e0
Timetable fixes
- Only one request is made to get the timetable HTML document for parsing the timetable and the weekNumberYear
- On timeouts or other errors, the cached data won't be overwritten with emptiness anymore
- The scheduled updates will now also update the weekNumberYear
2021-10-24 14:33:59 +02:00
Jannik 46c9a61124
remove the workaround introduced in 36acf1a00a and update the Dockerfile
continuous-integration/drone/push Build is passing Details
2020-06-08 17:49:38 +02:00
Jannik 36acf1a00a
add workaround for ssl errors
continuous-integration/drone/push Build is passing Details
2020-06-08 11:57:20 +02:00
Jannik f9029bf1c3
use HashMap insted of ArrayList to store the timetables
continuous-integration/drone/push Build is passing Details
2020-06-06 23:07:23 +02:00
Jannik efd8f9f9f5
update spring
continuous-integration/drone/push Build is passing Details
* spring-boot 2.2.7 -> 2.3.0
2020-05-25 11:21:24 +02:00
Jannik 678a97f140
fix MensaParser & update spring boot, kotlin
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
* fixed the MensaParser(), it should now work more reliable
* updated spring boot 2.2.4 -> 2.2.5
* updated kotlin 1.3.61 -> 1.3.70
* clean up MensaParserTest
2020-03-03 19:31:12 +01:00
Jannik a13203c477
use the current directory to store the config.xml and cached timetables
continuous-integration/drone/push Build is passing Details
2020-01-15 13:42:40 +01:00
Jannik 3be98f6129
added junit test for TimetableParser
continuous-integration/drone/push Build is passing Details
* this also is release 1.1.4 (api version 1.1.2)
* closes issue #5
2019-09-14 00:43:59 +02:00
Jannik 5e220225f6
parse the week number of the year too 2019-09-06 23:10:35 +02:00
Jannik a0fceccc2f
added junit test for MensaParser
* updated kotlin 1.3.31 -> 1.3.41
* updated spring boot 2.1.5 -> 2.1.7
* updated coroutines 1.2.1 -> 1.2.2
* reworked MensaParser to make it testable
2019-08-16 13:59:44 +02:00
Jannik 754c8cb17b
clean up APICOntroller & new CacheController
* added a CacheController to hold all cache variables and clean up the APIController
* more consistent naming of variables
* update mensaMenu and courseList only if the request was successful
2019-05-28 12:49:25 +02:00
Jannik 9efc7fe4b7
cacth all exceptions in MensaParser
there are many things that can go wrong
2019-05-25 20:23:31 +02:00
Jannik e804774970
cover some timeouts 2019-05-25 19:37:04 +02:00
Jannik aa48668af1 fixed wrong lessonID 2019-04-06 11:33:21 +02:00
Jannik cf0327bc88 added initial delay for scheduled updates 2019-03-18 16:13:13 +01:00
Jannik f2c1f2bc58 update all existing courses every 3 hours & some clean up 2019-03-13 19:12:05 +01:00
Jannik 6f2bed65ab added spring and a API specific stuff
this commit adds a fully working API wit /courses, /timetable?courseName=[course] and /mensamenu
2019-03-12 22:06:04 +01:00
Jannik ace2cb1e39 updated all parser & updated build.gradle
this is the first work to get tcor fully workin
2019-03-11 20:12:49 +01:00