Skip to content

Commit

Permalink
chg: [crawlers] add endpoints to reset captures
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrtia committed Dec 12, 2023
1 parent c20c41c commit e51ee7a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions var/www/blueprints/crawler_splash.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e51ee7a

Please sign in to comment.