removed testing flash message

This commit is contained in:
Alan Roberts 2024-09-26 19:54:14 -04:00
parent e83e1874e1
commit 9498dbd323

View file

@ -339,7 +339,6 @@ def admin_federation():
flash(_(f'Ban imports requested, but no json provided.')) flash(_(f'Ban imports requested, but no json provided.'))
return redirect(url_for('admin.admin_federation')) return redirect(url_for('admin.admin_federation'))
# this is the export bans button # this is the export bans button
elif ban_lists_form.export_submit.data and ban_lists_form.validate(): elif ban_lists_form.export_submit.data and ban_lists_form.validate():
# create the empty dict # create the empty dict
@ -398,7 +397,6 @@ def admin_federation():
# the as_attachment=True results in flask # the as_attachment=True results in flask
# redirecting to the current page, so no # redirecting to the current page, so no
# url_for needed here # 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, return send_file(buffer, download_name=f'{current_app.config["SERVER_NAME"]}_bans.json', as_attachment=True,
mimetype='application/json') mimetype='application/json')