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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user