mirror of
https://github.com/simon987/od-database.git
synced 2025-12-13 14:59:02 +00:00
Get queued tasks temporarily returns only non-ftp websites
This commit is contained in:
4
app.py
4
app.py
@@ -550,7 +550,7 @@ def api_get_task():
|
||||
name = db.check_api_token(token)
|
||||
|
||||
if name:
|
||||
task = db.pop_task(name)
|
||||
task = db.pop_task(name, False)
|
||||
|
||||
if task:
|
||||
print("Assigning task " + str(task.website_id) + " to " + name)
|
||||
@@ -562,7 +562,7 @@ def api_get_task():
|
||||
task = Task(website_id, website.url)
|
||||
db.put_task(task)
|
||||
|
||||
task = db.pop_task(name)
|
||||
task = db.pop_task(name, False)
|
||||
|
||||
return Response(str(task), mimetype="application/json")
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user