mirror of
https://github.com/simon987/od-database.git
synced 2025-04-10 14:06:45 +00:00
hotfix attempt 3 pt. 2
This commit is contained in:
parent
59b1d249ba
commit
32c1c861ad
BIN
__pycache__/app.cpython-36 (ManjaroBox's conflicted copy 2018-09-03).pyc
Executable file
BIN
__pycache__/app.cpython-36 (ManjaroBox's conflicted copy 2018-09-03).pyc
Executable file
Binary file not shown.
BIN
__pycache__/app.cpython-36.pyc
Executable file
BIN
__pycache__/app.cpython-36.pyc
Executable file
Binary file not shown.
BIN
__pycache__/app.cpython-37.pyc
Normal file
BIN
__pycache__/app.cpython-37.pyc
Normal file
Binary file not shown.
BIN
__pycache__/callbacks.cpython-36.pyc
Executable file
BIN
__pycache__/callbacks.cpython-36.pyc
Executable file
Binary file not shown.
BIN
__pycache__/callbacks.cpython-37.pyc
Normal file
BIN
__pycache__/callbacks.cpython-37.pyc
Normal file
Binary file not shown.
BIN
__pycache__/config.cpython-36 (ManjaroBox's conflicted copy 2018-09-03).pyc
Executable file
BIN
__pycache__/config.cpython-36 (ManjaroBox's conflicted copy 2018-09-03).pyc
Executable file
Binary file not shown.
BIN
__pycache__/config.cpython-36.pyc
Executable file
BIN
__pycache__/config.cpython-36.pyc
Executable file
Binary file not shown.
BIN
__pycache__/config.cpython-37.pyc
Normal file
BIN
__pycache__/config.cpython-37.pyc
Normal file
Binary file not shown.
BIN
__pycache__/config.pypy3-60.pyc
Executable file
BIN
__pycache__/config.pypy3-60.pyc
Executable file
Binary file not shown.
BIN
__pycache__/database.cpython-36.pyc
Executable file
BIN
__pycache__/database.cpython-36.pyc
Executable file
Binary file not shown.
BIN
__pycache__/database.cpython-37.pyc
Normal file
BIN
__pycache__/database.cpython-37.pyc
Normal file
Binary file not shown.
BIN
__pycache__/od_util.cpython-36.pyc
Executable file
BIN
__pycache__/od_util.cpython-36.pyc
Executable file
Binary file not shown.
BIN
__pycache__/od_util.cpython-37.pyc
Normal file
BIN
__pycache__/od_util.cpython-37.pyc
Normal file
Binary file not shown.
BIN
__pycache__/reddit_bot.cpython-36.pyc
Executable file
BIN
__pycache__/reddit_bot.cpython-36.pyc
Executable file
Binary file not shown.
BIN
__pycache__/reddit_bot.cpython-37.pyc
Normal file
BIN
__pycache__/reddit_bot.cpython-37.pyc
Normal file
Binary file not shown.
BIN
__pycache__/tasks.cpython-36.pyc
Executable file
BIN
__pycache__/tasks.cpython-36.pyc
Executable file
Binary file not shown.
BIN
__pycache__/tasks.cpython-37.pyc
Normal file
BIN
__pycache__/tasks.cpython-37.pyc
Normal file
Binary file not shown.
2
api.py
2
api.py
@ -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)
|
||||
|
@ -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])
|
||||
|
||||
|
BIN
search/__pycache__/__init__.cpython-36.pyc
Executable file
BIN
search/__pycache__/__init__.cpython-36.pyc
Executable file
Binary file not shown.
BIN
search/__pycache__/__init__.cpython-37.pyc
Normal file
BIN
search/__pycache__/__init__.cpython-37.pyc
Normal file
Binary file not shown.
BIN
search/__pycache__/filter.cpython-37.pyc
Normal file
BIN
search/__pycache__/filter.cpython-37.pyc
Normal file
Binary file not shown.
Binary file not shown.
BIN
search/__pycache__/search.cpython-36.pyc
Executable file
BIN
search/__pycache__/search.cpython-36.pyc
Executable file
Binary file not shown.
BIN
search/__pycache__/search.cpython-37.pyc
Normal file
BIN
search/__pycache__/search.cpython-37.pyc
Normal file
Binary file not shown.
BIN
test/__pycache__/__init__.cpython-36.pyc
Executable file
BIN
test/__pycache__/__init__.cpython-36.pyc
Executable file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user