mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
removed testing flash message
This commit is contained in:
parent
e83e1874e1
commit
9498dbd323
1 changed files with 0 additions and 2 deletions
|
@ -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')
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue