Admin html Ergänzungen Überschriften
This commit is contained in:
6
app.py
6
app.py
@@ -7,7 +7,7 @@ import generate_welcome_page
|
||||
from datetime import datetime
|
||||
|
||||
from flask import (
|
||||
Flask, render_template,
|
||||
Flask, jsonify, render_template,
|
||||
send_from_directory, redirect,
|
||||
request, abort
|
||||
)
|
||||
@@ -26,7 +26,7 @@ BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||
MEDIA_DIR = os.path.join(BASE_DIR, "media")
|
||||
CONFIG_FILE = os.path.join(BASE_DIR, "config.json")
|
||||
|
||||
APP_VERSION = "4.0.2"
|
||||
APP_VERSION = "4.0.4"
|
||||
UPLOAD_EXTENSIONS = {".jpg", ".jpeg", ".png", ".mp4"}
|
||||
|
||||
app = Flask(__name__)
|
||||
@@ -117,7 +117,7 @@ def add_customer():
|
||||
|
||||
if request.method == "POST":
|
||||
customer_name = request.form.get("customer_name", "").strip()
|
||||
|
||||
print(f"🔍 APP.PY - Suche nach Kunde: '{customer_name}'")
|
||||
if not customer_name:
|
||||
error = "Kundenname erforderlich"
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user