mirror of
https://github.com/simon987/od-database.git
synced 2025-04-19 18:36:44 +00:00
Bug when directory is empty with new file upload (server side)
This commit is contained in:
parent
8ef1d36c9d
commit
df5b01dc83
2
app.py
2
app.py
@ -563,6 +563,8 @@ def api_complete_task():
|
|||||||
if task:
|
if task:
|
||||||
|
|
||||||
filename = "./tmp/" + str(task_result.website_id) + ".json"
|
filename = "./tmp/" + str(task_result.website_id) + ".json"
|
||||||
|
if not os.path.exists(filename):
|
||||||
|
filename = None
|
||||||
taskManager.complete_task(filename, task, task_result, name)
|
taskManager.complete_task(filename, task, task_result, name)
|
||||||
|
|
||||||
if filename and os.path.exists(filename):
|
if filename and os.path.exists(filename):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user