📚 Improved backend structure & logs management 🎉
This commit is contained in:
@@ -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 = []
|
||||
|
||||
|
Reference in New Issue
Block a user