mirror of
https://github.com/simon987/od-database.git
synced 2025-04-19 18:36:44 +00:00
Create new rescan task when no queued tasks pt2
This commit is contained in:
parent
4c51598441
commit
edf1849bac
@ -388,8 +388,8 @@ class Database:
|
||||
|
||||
cursor.execute("SELECT id, website_id, url, priority, callback_type, callback_args " +
|
||||
"FROM Queue WHERE assigned_crawler is NULL " +
|
||||
("AND url LIKE 'ftp%'" if ftp else "") +
|
||||
"ORDER BY priority DESC, Queue.id" +
|
||||
("AND url LIKE 'ftp%' " if ftp else "") +
|
||||
"ORDER BY priority DESC, Queue.id " +
|
||||
"ASC LIMIT 1")
|
||||
task = cursor.fetchone()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user