bugfix sythax-error
This commit is contained in:
parent
d0453dbcb9
commit
a69b8e4990
BIN
app/routes/__pycache__/admin.cpython-314.pyc
Normal file
BIN
app/routes/__pycache__/admin.cpython-314.pyc
Normal file
Binary file not shown.
@ -210,8 +210,11 @@ def admin_create_theme():
|
|||||||
}
|
}
|
||||||
with open(path, 'w', encoding='utf-8') as f:
|
with open(path, 'w', encoding='utf-8') as f:
|
||||||
json.dump(template, f, ensure_ascii=False, indent=2)
|
json.dump(template, f, ensure_ascii=False, indent=2)
|
||||||
logger.info(f"Neues Theme angelegt: {os.path.relpath(path, base_dir)}")
|
logger.info(f"Neues Theme angelegt: {os.path.relpath(path, base_dir)}")
|
||||||
return jsonify({"success": True, "path": os.path.relpath(path, base_dir)})
|
return jsonify({"success": True, "path": os.path.relpath(path, base_dir)})
|
||||||
|
except Exception as e:
|
||||||
|
logger.exception("create_theme fehlgeschlagen")
|
||||||
|
return jsonify({"success": False, "message": str(e)}), 500
|
||||||
|
|
||||||
|
|
||||||
@admin_bp.route('/set_default_theme', methods=['POST'])
|
@admin_bp.route('/set_default_theme', methods=['POST'])
|
||||||
@ -227,6 +230,3 @@ def admin_set_default_theme():
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.exception("Default-Theme setzen fehlgeschlagen")
|
logger.exception("Default-Theme setzen fehlgeschlagen")
|
||||||
return jsonify({"success": False, "message": str(e)}), 500
|
return jsonify({"success": False, "message": str(e)}), 500
|
||||||
except Exception as e:
|
|
||||||
logger.exception("create_theme fehlgeschlagen")
|
|
||||||
return jsonify({"success": False, "message": str(e)}), 500
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user