Commit Graph
18 Commits
Author SHA1 Message Date
hannesbraun 14b212dcf8 Fix permissions of TCoR volume in Docker container 2023-01-31 18:53:41 +01:00
hannesbraun 7f7aaa180a Update year when updating cached timetables 2023-01-13 20:21:15 +01:00
hannesbraun a39da6deba Update MensaParser for new Mensa website 2022-12-19 21:02:50 +01:00
hannesbraun d457627e00 Update jsoup from 1.14.3 to 1.15.3
Version 1.14.3 also included a vulnerability (CVE-2022-36033) that got fixed with 1.15.3.
2022-12-19 20:30:14 +01:00
hannesbraun 795ddc516d Deduplicate default values in StartupController 2022-12-19 20:26:45 +01:00
hannesbraun 006e962bf1 Fix CacheController lookup
continuous-integration/woodpecker the build was successful
2022-01-14 15:42:25 +01:00
hannesbraun d863f4fb1e TimetableParser: parse year
continuous-integration/woodpecker the build was successful
This also adds the parsed year to the meta object included in the timetable response
2021-10-24 14:39:22 +02:00
hannesbraun 5ba9dfc263 Better null checks 2021-10-24 14:34:00 +02:00
hannesbraun ca8efdaa85 Only add timetable to cache on success 2021-10-24 14:34:00 +02:00
hannesbraun 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
hannesbraun fb6291792d Use ConcurrentHashMap for timetableList
Multiple requests may be processed at the same time and could otherwise cause problems (concurrent write operations)
2021-10-24 14:34:00 +02:00
hannesbraun 993b8f6a71 Small improvements
- Improve formatting
- Fix some typos
- Mini code improvements
2021-10-24 14:34:00 +02:00
hannesbraun f9cc9b5e14 Make the update scheduling more readable (hopefully) 2021-10-24 14:34:00 +02:00
hannesbraun 460d1ee131 StatusController: use properties instead of getters 2021-10-24 14:33:59 +02:00
hannesbraun 90847a2730 Also set JVM target to 11 for Java 2021-10-24 14:33:59 +02:00
hannesbraun a292b45fcb Dependency updates
This also replaces JCenter with Maven Central since JCenter is now read-only
2021-10-24 14:33:59 +02:00
hannesbraun 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
hannesbraun ae9bf2a562 Update Kotlin to 1.5.31 2021-10-24 14:33:58 +02:00