Added sorting options for anime lists
This commit is contained in:
15
patches/user-sort-fix/user-sort-fix.go
Normal file
15
patches/user-sort-fix/user-sort-fix.go
Normal file
@ -0,0 +1,15 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/animenotifier/notify.moe/arn"
|
||||
)
|
||||
|
||||
func main() {
|
||||
defer arn.Node.Close()
|
||||
|
||||
for user := range arn.StreamUsers() {
|
||||
settings := user.Settings()
|
||||
settings.SortBy = arn.SortByAiringDate
|
||||
settings.Save()
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user