Remove on dropped

This commit is contained in:
daru
2022-05-28 11:39:46 +02:00
parent 7e939800cd
commit b2b6c97282
5 changed files with 30 additions and 12 deletions

View File

@@ -185,7 +185,15 @@ func FetchProgress(animeId, userId int64, username string, progress int) (int, t
if newProgress != -1 {
return newProgress, updated, malApiStatusC, err
}
// has no progress or dropped
// check dropped
newProgress, updated, err = fetchProgressOnState(animeId, userId, progress, username, malApiStatusD)
if err != nil {
return newProgress, updated, "", err
}
if newProgress != -1 {
return newProgress, updated, malApiStatusD, err
}
// has no progress or PTW
return 0, updated, "", nil
}