Commit Graph

25 Commits

Author SHA1 Message Date
e7b5eff04b
Use ConcurrentHashMap for timetableList
Multiple requests may be processed at the same time and could otherwise cause problems (concurrent write operations)
2021-10-14 00:32:28 +02:00
6f4cb9fd66
Small improvements
- Improve formatting
- Fix some typos
- Mini code improvements
2021-10-13 22:21:43 +02:00
1f1374f112
Make the update scheduling more readable (hopefully) 2021-10-13 22:21:43 +02:00
b783fb6c4f
StatusController: use properties instead of getters 2021-10-13 22:21:42 +02:00
c62f576ace
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-13 22:21:42 +02:00
a1dc5656b8
updated mensa URL, thanks to Hannes B.
All checks were successful
continuous-integration/drone the build was successful
2021-10-13 19:47:38 +02:00
3f10c8afaa
fix courseList sorting
All checks were successful
continuous-integration/drone/push Build is passing
closes #15
2020-08-16 19:56:13 +02:00
9de1e295dd
fix reading file from resources
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2020-08-06 17:27:49 +02:00
6287d4582d
update spring-boot
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
* add TEST_A and TEST_B courses for testing during summer break
2020-08-06 16:31:05 +02:00
f9029bf1c3
use HashMap insted of ArrayList to store the timetables
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-06 23:07:23 +02:00
fe72c02562
remove unneeded dependency, use try catch when writing files
All checks were successful
continuous-integration/drone/push Build is passing
2020-06-06 20:53:23 +02:00
ec7a0a7a64
change some parameters
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
* fixes #13
* use a HashMap for timetableRequests count
* api version 1.2.0
* software version 1.2.3
2020-06-05 18:23:15 +02:00
c22f752788
ci test 2
All checks were successful
continuous-integration/drone/push Build is passing
2020-03-02 22:34:10 +01:00
2f1f65eba0
count courseList requests seperat 2020-02-27 17:42:19 +01:00
be95af43c2
made CacheCOntroller() static
All checks were successful
continuous-integration/drone/push Build is passing
2020-02-16 17:17:39 +01:00
f20279a4b4
updated jsoup 1.12.1 -> 1.12.2
All checks were successful
continuous-integration/drone/push Build is passing
2020-02-16 15:18:52 +01:00
3aa27dff4a
don't use lateinit in CacheController()
All checks were successful
continuous-integration/drone/push Build is passing
2020-02-10 17:42:44 +01:00
a13203c477
use the current directory to store the config.xml and cached timetables
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-15 13:42:40 +01:00
d0d5e4b6d1
removed Java legacy code
All checks were successful
continuous-integration/drone/push Build is passing
the minimum is now Java 11
2019-12-30 01:36:21 +01:00
4ca79e6540
removed invalid TODOs
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-21 14:58:34 +01:00
697f5e3167
added on disk cache for the timetables
All checks were successful
continuous-integration/drone/push Build is passing
* update spring-boot 2.1.9 -> 2.1.10
2019-11-14 18:43:00 +01:00
dd064d63af
added a configuration via config.xml file
All checks were successful
continuous-integration/drone/push Build is passing
* the config file contains the Mensa name and URL, the Cachet Base-URL and API-Key
2019-10-28 18:39:44 +01:00
3177be1bf0
use a FixedThreadPool to execute the timetable updates
All checks were successful
continuous-integration/drone/push Build is passing
closes #9
2019-10-27 13:51:08 +01:00
db57059727
version 1.1.6
All checks were successful
continuous-integration/drone/push Build is passing
* 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
132cf2df0e
reworked the CacheController Class
All checks were successful
continuous-integration/drone/push Build is passing
2019-10-20 11:52:44 +02:00