Commit Graph

23 Commits

Author SHA1 Message Date
Jannik e6f09c11ba
update libraries
* spring boot 2.5.5 -> 2.6.6
* kotlin 1.5.31 -> 1.6.20
* coroutines 1.5.2 -> 1.6.1
* gson 2.8.8 -> 2.9.0
* gradle wrapper 7.2 -> 7.4.2
2022-04-08 14:54:06 +02:00
Hannes Braun 006e962bf1
Fix CacheController lookup
continuous-integration/woodpecker the build was successful Details
2022-01-14 15:42:25 +01:00
Hannes Braun d863f4fb1e
TimetableParser: parse year
continuous-integration/woodpecker the build was successful Details
This also adds the parsed year to the meta object included in the timetable response
2021-10-24 14:39:22 +02:00
Hannes Braun ca8efdaa85
Only add timetable to cache on success 2021-10-24 14:34:00 +02:00
Hannes Braun 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
Hannes Braun 993b8f6a71
Small improvements
- Improve formatting
- Fix some typos
- Mini code improvements
2021-10-24 14:34:00 +02:00
Hannes Braun f9cc9b5e14
Make the update scheduling more readable (hopefully) 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 3f10c8afaa
fix courseList sorting
continuous-integration/drone/push Build is passing Details
closes #15
2020-08-16 19:56:13 +02:00
Jannik 9de1e295dd
fix reading file from resources
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
2020-08-06 17:27:49 +02:00
Jannik 6287d4582d
update spring-boot
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
* add TEST_A and TEST_B courses for testing during summer break
2020-08-06 16:31:05 +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 fe72c02562
remove unneeded dependency, use try catch when writing files
continuous-integration/drone/push Build is passing Details
2020-06-06 20:53:23 +02:00
Jannik c22f752788
ci test 2
continuous-integration/drone/push Build is passing Details
2020-03-02 22:34:10 +01:00
Jannik be95af43c2
made CacheCOntroller() static
continuous-integration/drone/push Build is passing Details
2020-02-16 17:17:39 +01:00
Jannik 3aa27dff4a
don't use lateinit in CacheController()
continuous-integration/drone/push Build is passing Details
2020-02-10 17:42:44 +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 d0d5e4b6d1
removed Java legacy code
continuous-integration/drone/push Build is passing Details
the minimum is now Java 11
2019-12-30 01:36:21 +01:00
Jannik 697f5e3167
added on disk cache for the timetables
continuous-integration/drone/push Build is passing Details
* update spring-boot 2.1.9 -> 2.1.10
2019-11-14 18:43:00 +01:00
Jannik dd064d63af
added a configuration via config.xml file
continuous-integration/drone/push Build is passing Details
* the config file contains the Mensa name and URL, the Cachet Base-URL and API-Key
2019-10-28 18:39:44 +01:00
Jannik 3177be1bf0
use a FixedThreadPool to execute the timetable updates
continuous-integration/drone/push Build is passing Details
closes #9
2019-10-27 13:51:08 +01:00
Jannik db57059727
version 1.1.6
continuous-integration/drone/push Build is passing Details
* API version 1.1.4
* added /health, returns 200 (OK, for status checks)
* moved status code to a separate class
* added status.mosad.xyz reporting
2019-10-21 18:46:21 +02:00
Jannik 132cf2df0e
reworked the CacheController Class
continuous-integration/drone/push Build is passing Details
2019-10-20 11:52:44 +02:00