Skip to content

Commit

Permalink
Merge pull request #244 from boudicca-events/abl/fix-collectors
Browse files Browse the repository at this point in the history
remove InnovationsHauptplatzCodingWeeksCollector and fix OteloLinzCol…
  • Loading branch information
kadhonn authored Jan 10, 2024
2 parents 1f1bedd + e3a5383 commit 4faea8c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 58 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ fun main() {
.addEventCollector(LandestheaterLinzCollector())
.addEventCollector(KapuCollector())
.addEventCollector(StadtwerkstattCollector())
.addEventCollector(InnovationsHauptplatzCodingWeeksCollector())
.addEventCollector(OteloLinzCollector())
.addEventCollector(EnnsEventsCollector())
.addEventCollector(UlfOoeCollector())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ fun main() {
// .debug(LandestheaterLinzCollector())
// .debug(KapuCollector())
// .debug(StadtwerkstattCollector())
// .debug(InnovationsHauptplatzCodingWeeksCollector())
// .debug(OteloLinzCollector())
.debug(OteloLinzCollector())
// .debug(EnnsEventsCollector())
// .debug(UlfOoeCollector())
// .debug(StiftskonzerteCollector())
Expand All @@ -33,5 +32,5 @@ fun main() {
// .debug(BurgClamCollector())
// .debug(StadthalleWienCollector())
// .debug(MuseumArbeitsweltCollector())
.debug(OKHVoecklabruckCollector())
// .debug(OKHVoecklabruckCollector())
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,19 @@ class OteloLinzCollector : TwoStepEventCollector<String>("otelolinz") {
val startAndEndTimes = startAndEndTimeText.split(" - ")

val localStartTime = LocalTime.parse(startAndEndTimes[0].trim(), DateTimeFormatter.ofPattern("kk:mm"))
val localEndTime = LocalTime.parse(startAndEndTimes[1].trim(), DateTimeFormatter.ofPattern("kk:mm"))
val localEndTime = if (startAndEndTimes.size > 1) {
LocalTime.parse(startAndEndTimes[1].trim(), DateTimeFormatter.ofPattern("kk:mm"))
} else {
null
}

return Pair(
localDate.atTime(localStartTime).atZone(ZoneId.of("Europe/Vienna")).toOffsetDateTime(),
localDate.atTime(localEndTime).atZone(ZoneId.of("Europe/Vienna")).toOffsetDateTime(),
if (localEndTime != null) {
localDate.atTime(localEndTime).atZone(ZoneId.of("Europe/Vienna")).toOffsetDateTime()
} else {
null
}
)
}

Expand Down

0 comments on commit 4faea8c

Please sign in to comment.