Compare commits

..

2 commits
2.0.1 ... 2.0.2

2 changed files with 6 additions and 5 deletions

4
go.mod
View file

@ -1,3 +1,3 @@
module github.com/ChaoticByte/wid-notifier
module remotebranch.eu/ChaoticByte/wid-notifier
go 1.24
go 1.26.2

View file

@ -34,10 +34,11 @@ func main() {
os.Exit(1)
}
for _, arg := range args {
if arg == "-h" || arg == "--help" {
switch arg {
case "-h", "--help":
showHelp()
os.Exit(0)
} else if arg == "--version" {
case "--version":
showVersion()
os.Exit(0)
}
@ -140,7 +141,7 @@ func main() {
for r, notices := range noticesToBeSent {
// sort by publish date
slices.SortFunc(notices, func(a *WidNotice, b *WidNotice) int {
if a.Published == b.Published {
if a.Published.Equal(b.Published) {
return 0
} else if a.Published.After(b.Published) {
return 1