mirror of
https://github.com/ultrasn0w/huso.git
synced 2025-12-14 06:29:53 +01:00
the big talk
This commit is contained in:
16
schaffer.go
16
schaffer.go
@@ -191,14 +191,6 @@ func FetchProgress(animeId int64, username string) (int, time.Time, int, string,
|
||||
if newProgress != -1 {
|
||||
return newProgress, updated, score, malApiStatusW, err
|
||||
}
|
||||
// check on hold
|
||||
newProgress, updated, score, err = FetchProgressOnState(animeId, username, malApiStatusH)
|
||||
if err != nil {
|
||||
return newProgress, updated, score, "", err
|
||||
}
|
||||
if newProgress != -1 {
|
||||
return newProgress, updated, score, malApiStatusH, err
|
||||
}
|
||||
// check completed
|
||||
newProgress, updated, score, err = FetchProgressOnState(animeId, username, malApiStatusC)
|
||||
if err != nil {
|
||||
@@ -207,6 +199,14 @@ func FetchProgress(animeId int64, username string) (int, time.Time, int, string,
|
||||
if newProgress != -1 {
|
||||
return newProgress, updated, score, malApiStatusC, err
|
||||
}
|
||||
// check on hold
|
||||
newProgress, updated, score, err = FetchProgressOnState(animeId, username, malApiStatusH)
|
||||
if err != nil {
|
||||
return newProgress, updated, score, "", err
|
||||
}
|
||||
if newProgress != -1 {
|
||||
return newProgress, updated, score, malApiStatusH, err
|
||||
}
|
||||
// check dropped
|
||||
newProgress, updated, score, err = FetchProgressOnState(animeId, username, malApiStatusD)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user