CONFIRMED no longer exists

This commit is contained in:
Daoud Clarke 2022-06-30 20:45:26 +01:00
parent b6f29548db
commit d47457b834

View file

@ -110,7 +110,7 @@ class URLDatabase:
UPDATE urls SET status = {URLStatus.ASSIGNED.value}, user_id_hash = %(user_id_hash)s, updated = %(now)s
WHERE url IN (
SELECT url FROM urls
WHERE status IN ({URLStatus.CONFIRMED.value}, {URLStatus.NEW.value}) OR (
WHERE status = {URLStatus.NEW.value} OR (
status = {URLStatus.ASSIGNED.value} AND updated < %(min_updated_date)s
)
ORDER BY score DESC