mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-10 08:38:28 +00:00
chg: [crawlers] add endpoints to reset captures
This commit is contained in:
parent
c20c41c50f
commit
e51ee7ab55
1 changed files with 7 additions and 0 deletions
|
@ -83,6 +83,13 @@ def crawler_dashboard_json():
|
|||
return jsonify({'crawlers_status': crawlers_status,
|
||||
'stats': crawlers_latest_stats})
|
||||
|
||||
@crawler_splash.route("/crawlers/dashboard/captures/delete", methods=['GET'])
|
||||
@login_required
|
||||
@login_admin
|
||||
def crawlers_dashboard():
|
||||
crawlers.delete_captures()
|
||||
return redirect(url_for('crawler_splash.crawlers_dashboard'))
|
||||
|
||||
|
||||
@crawler_splash.route("/crawlers/manual", methods=['GET'])
|
||||
@login_required
|
||||
|
|
Loading…
Reference in a new issue