Compare commits

..

12 Commits

Author SHA1 Message Date
24d0d9ac8c
TimetableParser: parse year
All checks were successful
continuous-integration/woodpecker the build was successful
This also adds the parsed year to the meta object included in the timetable response
2021-10-23 23:39:18 +02:00
ca14a5d2f6
Better null checks 2021-10-23 13:50:09 +02:00
3d4e2f363d
Only add timetable to cache on success 2021-10-16 01:08:52 +02:00
235cc7f773
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-15 20:07:58 +02:00
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
65dc8ea5d2
Also set JVM target to 11 for Java 2021-10-13 22:21:42 +02:00
97efbd0877
Dependency updates
This also replaces JCenter with Maven Central since JCenter is now read-only
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
8ac78d29b1
Update Kotlin to 1.5.31 2021-10-13 22:21:41 +02:00
2 changed files with 5 additions and 4 deletions

View File

@ -11,11 +11,12 @@ pipeline:
event:
- tag
docker:
image: techknowlogick/drone-docker
privileged: true
image: plugins/docker
repo: mosadxyz/tcor
secrets: [docker_username, docker_password]
tags: latest
secrets:
- username: docker_username
password: docker_password
when:
event:
- tag

View File

@ -6,7 +6,7 @@ plugins {
}
group 'org.mosad'
version '1.2.8'
version '1.2.7'
repositories {
mavenCentral()