hotfix attempt 3 pt. 2

This commit is contained in:
simon987 2019-02-02 11:48:09 -05:00
parent 59b1d249ba
commit 32c1c861ad
26 changed files with 2 additions and 2 deletions

BIN
__pycache__/app.cpython-36.pyc Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
__pycache__/config.cpython-36.pyc Executable file

Binary file not shown.

Binary file not shown.

BIN
__pycache__/config.pypy3-60.pyc Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
__pycache__/tasks.cpython-36.pyc Executable file

Binary file not shown.

Binary file not shown.

2
api.py
View File

@ -31,7 +31,7 @@ def setup_api(app):
oddb.logger.info("No queued tasks, creating a new one")
try:
task = oddb.db.make_task_for_oldest()
task = oddb.db.make_task_for_oldest(name)
except:
oddb.logger.error("Couldn't create new task")
abort(404)

View File

@ -161,7 +161,7 @@ class Database:
"ORDER BY last_modified ASC LIMIT 1", (assigned_crawler, ))
cursor.execute("SELECT id, website_id, url, priority, callback_type, callback_args FROM Queue "
"WHERE id=LAST_INSERT_ID()")
"WHERE id=LAST_INSERT_ROWID()")
task = cursor.fetchone()
return Task(task[1], task[2], task[3], task[4], task[5])

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.