fix: require_arg for --hdd-path, explicit event in stackAction, title separator, nextPruneLabel Sunday edge case

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-16 16:28:41 +01:00
parent 7ca52f88a2
commit 29be81f1be
5 changed files with 20 additions and 14 deletions
+6 -2
View File
@@ -246,8 +246,12 @@ func (s *Server) templateFuncMap() template.FuncMap {
next = now.Add(24 * time.Hour)
default: // weekly/sunday
daysUntilSunday := (7 - int(now.Weekday())) % 7
if daysUntilSunday == 0 && now.Hour() >= 4 {
daysUntilSunday = 7
if daysUntilSunday == 0 {
if now.Hour() >= 4 {
daysUntilSunday = 7 // Already ran today, next week
} else {
return "ma" // Today (Sunday), hasn't run yet
}
}
next = now.AddDate(0, 0, daysUntilSunday)
}