mirror of
https://github.com/simon987/od-database.git
synced 2025-12-14 15:19:03 +00:00
Added crawl logs page
This commit is contained in:
@@ -72,5 +72,13 @@ def get_file_list(website_id):
|
||||
return abort(404)
|
||||
|
||||
|
||||
@app.route("/task/logs/")
|
||||
@auth.login_required
|
||||
def get_task_logs():
|
||||
|
||||
json_str = json.dumps([result.to_json() for result in tm.get_all_results()])
|
||||
return json_str
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run(port=5001, host="0.0.0.0")
|
||||
|
||||
Reference in New Issue
Block a user