v2 #2
4
app.go
4
app.go
@ -380,7 +380,7 @@ func (a *App) NextSchedule(now time.Time) (string, error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if t.Year() < now.Year() || t.Month() != now.Month() {
|
if t.Year() < now.Year() || t.Month() != now.Month() {
|
||||||
return "month", nil
|
return "monthly", nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -395,7 +395,7 @@ func (a *App) NextSchedule(now time.Time) (string, error) {
|
|||||||
ny, nw := now.ISOWeek()
|
ny, nw := now.ISOWeek()
|
||||||
ty, tw := t.ISOWeek()
|
ty, tw := t.ISOWeek()
|
||||||
if ty < ny || tw < nw {
|
if ty < ny || tw < nw {
|
||||||
return "month", nil
|
return "weekly", nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Code generated by version.sh (@generated) DO NOT EDIT.
|
// Code generated by version.sh (@generated) DO NOT EDIT.
|
||||||
package main
|
package main
|
||||||
var githash = "c372d43"
|
var githash = "db05789"
|
||||||
var branch = "v2"
|
var branch = "v2"
|
||||||
var buildstamp = "2023-06-30_22:15:16"
|
var buildstamp = "2023-07-01_12:10:14"
|
||||||
var commits = "63"
|
var commits = "64"
|
||||||
var version = "c372d43-b63 - 2023-06-30_22:15:16"
|
var version = "db05789-b64 - 2023-07-01_12:10:14"
|
||||||
|
Loading…
Reference in New Issue
Block a user