📚 Improved backend structure & logs management 🎉

This commit is contained in:
2025-06-11 09:29:15 +02:00
parent 4813e6cc70
commit 6fe5882e7d
17 changed files with 523 additions and 3 deletions

View File

@@ -148,7 +148,8 @@ def calendar_view():
can_edit = can_edit_events(current_user)
with get_cached_session() as db_session:
printers = db_session.query(Printer).filter_by(active=True).all()
# Alle Drucker für Auswahlfelder anzeigen (unabhängig von active-Status)
printers = db_session.query(Printer).all()
return render_template('calendar.html',
printers=printers,
@@ -1270,8 +1271,8 @@ def api_printer_availability():
return jsonify({"error": "Ungültiges Datumsformat"}), 400
with get_cached_session() as db_session:
# Alle aktiven Drucker laden
printers = db_session.query(Printer).filter_by(active=True).all()
# Alle Drucker laden für Verfügbarkeitsanalyse (unabhängig von active-Status)
printers = db_session.query(Printer).all()
availability_info = []