From 4e7924a91ac43db9ded93a2ee7fc091dd5a7967b Mon Sep 17 00:00:00 2001 From: Calm0 Date: Tue, 2 Jun 2026 15:49:50 +0200 Subject: [PATCH 1/3] Add leeway_sec to streaks config --- streaks.go | 1 + 1 file changed, 1 insertion(+) diff --git a/streaks.go b/streaks.go index 6983411..ff3ba22 100644 --- a/streaks.go +++ b/streaks.go @@ -37,6 +37,7 @@ type StreaksConfigStreak struct { MaxIdleCountDecay int64 `json:"max_idle_count_decay,omitempty"` ResetCronexpr string `json:"reset_cronexpr,omitempty"` TimeOffsetSec int64 `json:"time_offset_sec,omitempty"` + LeewaySec int64 `json:"leeway_sec,omitempty"` Rewards []*StreaksConfigStreakReward `json:"rewards,omitempty"` StartTimeSec int64 `json:"start_time_sec,omitempty"` EndTimeSec int64 `json:"end_time_sec,omitempty"` From cfe5d4c3031b9f6588d376d0f76eb01b355c515c Mon Sep 17 00:00:00 2001 From: Calm0 Date: Thu, 4 Jun 2026 14:29:20 +0200 Subject: [PATCH 2/3] Update drifted schemas --- schemas/17-Hiro-Streaks.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/schemas/17-Hiro-Streaks.json b/schemas/17-Hiro-Streaks.json index 599b6ee..c1cf012 100644 --- a/schemas/17-Hiro-Streaks.json +++ b/schemas/17-Hiro-Streaks.json @@ -61,6 +61,10 @@ "type": "integer", "minimum": 0 }, + "leeway_sec": { + "type": "integer", + "minimum": 0 + }, "rewards": { "type": "array", "items": { From 4201184f3f00523aedfb36965d892e988633767b Mon Sep 17 00:00:00 2001 From: Calm0 Date: Mon, 22 Jun 2026 15:58:39 +0200 Subject: [PATCH 3/3] rename to grace window --- schemas/17-Hiro-Streaks.json | 2 +- streaks.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/schemas/17-Hiro-Streaks.json b/schemas/17-Hiro-Streaks.json index c1cf012..e628442 100644 --- a/schemas/17-Hiro-Streaks.json +++ b/schemas/17-Hiro-Streaks.json @@ -61,7 +61,7 @@ "type": "integer", "minimum": 0 }, - "leeway_sec": { + "grace_window_sec": { "type": "integer", "minimum": 0 }, diff --git a/streaks.go b/streaks.go index ff3ba22..c14af00 100644 --- a/streaks.go +++ b/streaks.go @@ -37,7 +37,7 @@ type StreaksConfigStreak struct { MaxIdleCountDecay int64 `json:"max_idle_count_decay,omitempty"` ResetCronexpr string `json:"reset_cronexpr,omitempty"` TimeOffsetSec int64 `json:"time_offset_sec,omitempty"` - LeewaySec int64 `json:"leeway_sec,omitempty"` + GraceWindowSec int64 `json:"grace_window_sec,omitempty"` Rewards []*StreaksConfigStreakReward `json:"rewards,omitempty"` StartTimeSec int64 `json:"start_time_sec,omitempty"` EndTimeSec int64 `json:"end_time_sec,omitempty"`