chore: release version 0.5.1

This commit is contained in:
2026-04-13 11:13:27 +02:00
parent 7b53f66406
commit 96b979a878
7 changed files with 103 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
from __future__ import annotations
import json
from pathlib import Path
from flask import Flask
@@ -22,6 +23,12 @@ def create_app(config_class: type[Config] = Config) -> Flask:
app = Flask(__name__, static_folder="static", template_folder="templates")
app.config.from_object(config_class)
manifest_path = Path(app.root_path).parent / "CloudronManifest.json"
try:
app.config["APP_VERSION"] = json.loads(manifest_path.read_text(encoding="utf-8")).get("version", "0.0.0")
except FileNotFoundError:
app.config["APP_VERSION"] = "0.0.0"
app.config["DATA_DIR"].mkdir(parents=True, exist_ok=True)
app.config["UPLOAD_FOLDER"].mkdir(parents=True, exist_ok=True)
@@ -66,6 +73,7 @@ def create_app(config_class: type[Config] = Config) -> Flask:
return {
"app_name": app.config["APP_NAME"],
"app_version": app.config["APP_VERSION"],
"nav_items": [
("tasks.my_tasks", "Meine Aufgaben", "house"),
("tasks.all_tasks", "Alle", "list"),