From 9498dbd323c6304af88bfacd010df357700b5641 Mon Sep 17 00:00:00 2001 From: Alan Roberts Date: Thu, 26 Sep 2024 19:54:14 -0400 Subject: [PATCH] removed testing flash message --- app/admin/routes.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/admin/routes.py b/app/admin/routes.py index 235eb1db..6853cf52 100644 --- a/app/admin/routes.py +++ b/app/admin/routes.py @@ -339,7 +339,6 @@ def admin_federation(): flash(_(f'Ban imports requested, but no json provided.')) return redirect(url_for('admin.admin_federation')) - # this is the export bans button elif ban_lists_form.export_submit.data and ban_lists_form.validate(): # create the empty dict @@ -398,7 +397,6 @@ def admin_federation(): # the as_attachment=True results in flask # redirecting to the current page, so no # url_for needed here - flash(_('export button clicked')) return send_file(buffer, download_name=f'{current_app.config["SERVER_NAME"]}_bans.json', as_attachment=True, mimetype='application/json')