mirror of
https://github.com/simon987/od-database.git
synced 2025-12-11 14:08:51 +00:00
Overwrite document on re-index, update website last_modified on task complete, delete website files on index complete
This commit is contained in:
@@ -72,6 +72,17 @@ def get_file_list(website_id):
|
||||
return abort(404)
|
||||
|
||||
|
||||
@app.route("/file_list/<int:website_id>/free")
|
||||
@auth.login_required
|
||||
def free_file_list(website_id):
|
||||
file_name = "./crawled/" + str(website_id) + ".json"
|
||||
if os.path.exists(file_name):
|
||||
os.remove(file_name)
|
||||
return '{"ok": "true"}'
|
||||
else:
|
||||
return abort(404)
|
||||
|
||||
|
||||
@app.route("/task/logs/")
|
||||
@auth.login_required
|
||||
def get_task_logs():
|
||||
|
||||
Reference in New Issue
Block a user