|
|
@@ -1,6 +1,5 @@
|
|
|
"""Admin backup management routes."""
|
|
|
|
|
|
-import logging
|
|
|
from flask import jsonify, render_template, request, send_file
|
|
|
|
|
|
from services.auth.auth_service import admin_required
|
|
|
@@ -57,9 +56,7 @@ def register_routes(bp):
|
|
|
return jsonify({"status": "success", "backups": backups})
|
|
|
except Exception:
|
|
|
logging.exception("Error listing backups")
|
|
|
- return jsonify(
|
|
|
- {"status": "error", "message": "Error leyendo salvas"}
|
|
|
- ), 500
|
|
|
+ return jsonify({"status": "error", "message": "Error leyendo salvas"}), 500
|
|
|
|
|
|
@bp.route("/backup/download/<filename>")
|
|
|
@admin_required
|