Skip to content

Commit

Permalink
Temporary fix for full-day blockings.
Browse files Browse the repository at this point in the history
  • Loading branch information
jskripsky committed Nov 29, 2023
1 parent 448ebb4 commit 54a88e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Jobs.fs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ module Jobs =
let private allCourts = [Court1; Court2; Court3]
let private morning = TimeOnly(8, 0)
let private noon = TimeOnly(12, 0)

let private evening = TimeOnly(18, 0)
let private groundFrostBlockingTitle = "❄️❄️❄️ Bodenfrost (automatische Sperre) ❄️❄️❄️"

let private blockCourts (log: Logger) (gotCourtsClient: HttpClient) (blocking: Blocking): Result<unit, GotCourtsError> =
Expand Down Expand Up @@ -83,7 +85,8 @@ module Jobs =
Some (morning, noon)
else
log.Write (Warn, "", "Temperature will stay below 5° C tomorrow.")
None
// FIXME: find out why use 'None' here returns "Die Angabe im Feld Zeit muss eine Zahl sein." from GotCourts.
Some (morning, evening)

let blocking = {
Description = groundFrostBlockingTitle
Expand Down

0 comments on commit 54a88e0

Please sign in to comment.