fix: omit status on non-archive writes, skip finished in refresh and scan

This commit is contained in:
2026-07-27 13:35:46 +07:00
parent 896792d504
commit 7a16abd6a3
4 changed files with 83 additions and 6 deletions
+4 -3
View File
@@ -193,10 +193,11 @@ func scanBookmark(scan func(...any) error) (Bookmark, error) {
if latestChapterNum.Valid {
b.LatestChapterNum = &latestChapterNum.Float64
}
// A NULL or empty bucket would leave the row in no list at all, so it
// reads as the default rather than being passed through.
// A NULL, empty, or unrecognised bucket (e.g. a hand-edited row) would
// leave the row in no list at all, so anything outside the three known
// buckets reads as the default rather than being passed through.
b.Status = status.String
if b.Status == "" {
if b.Status != statusReading && b.Status != statusArchived && b.Status != statusFinished {
b.Status = statusReading
}
return b, nil