hotfix attempt 2

This commit is contained in:
simon987
2019-02-02 10:58:09 -05:00
parent 8ced4859f3
commit 0ff6ea1682
2 changed files with 5 additions and 7 deletions

4
api.py
View File

@@ -34,9 +34,7 @@ def setup_api(app):
website_id = oddb.db.get_oldest_website_id()
website = oddb.db.get_website_by_id(website_id)
task = Task(website_id, website.url)
oddb.db.put_task(task)
task = oddb.db.pop_task(name, accept_ftp)
oddb.db.put_task(task, name)
except:
oddb.logger.error("Couldn't create new task")
abort(404)