Update query in MarkResolved method to include 'manual_needed' status

- Modified the SQL query in the MarkResolved function to select torrents with both 'active' and 'manual_needed' statuses, enhancing the functionality of the method.
This commit is contained in:
Zsolt Alföldi
2026-05-07 01:25:34 +02:00
parent a322af07d0
commit 696d0227a3
2 changed files with 46 additions and 1 deletions

View File

@@ -79,7 +79,7 @@ func (s *Store) UpsertSeen(torrent model.Torrent, now time.Time) (State, error)
}
func (s *Store) MarkResolved(activeIDs map[int64]bool, now time.Time) error {
rows, err := s.db.Query(`SELECT ncore_id FROM torrents WHERE status = 'active'`)
rows, err := s.db.Query(`SELECT ncore_id FROM torrents WHERE status IN ('active', 'manual_needed')`)
if err != nil {
return err
}