diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-07-27 12:33:47 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-07-27 12:33:47 +0200 |
| commit | f5afb407beab795e371c36a3229e991e48c366fe (patch) | |
| tree | b9378cca00e46a1b063d53f3cfa52546ae782f9f /internal/calendar/calendar.go | |
| parent | 56f3b8161f73c33fe6e25f6461d3f061af427e9e (diff) | |
| download | lectio-f5afb407beab795e371c36a3229e991e48c366fe.tar.gz lectio-f5afb407beab795e371c36a3229e991e48c366fe.zip | |
test(calendar): regression oracle vs calapi 2020-2040 (0 season mismatches)
Caught + fixed an Advent-start bug: anchor on Christmas Eve, not Dec 25, so
years where Dec 25 is a Sunday don't lose the first week of Advent. Rank-class
diffs (324) are informational — the initial sanctoral dataset is partial.
Diffstat (limited to 'internal/calendar/calendar.go')
| -rw-r--r-- | internal/calendar/calendar.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/calendar/calendar.go b/internal/calendar/calendar.go index 3227a5a..77d37f9 100644 --- a/internal/calendar/calendar.go +++ b/internal/calendar/calendar.go @@ -41,7 +41,7 @@ func Compute(date time.Time, sel Selection, layers []Layer) LiturgicalDay { obs, others := pick(cands) day := LiturgicalDay{ Date: date, Season: td.Season, Week: td.Week, Weekday: date.Weekday(), - Observed: obs.Cel, Colour: colourOf(obs, td), + Observed: obs.Cel, Colour: colourOf(obs, td), ObservedBand: precedence(obs), SundayCycle: sundayCycle(liturgicalYearStart(date)), WeekdayCycle: weekdayCycle(liturgicalYearStart(date).Year() + 1), } |
