📚 Improved backend structure & logs for better tracking and management

This commit is contained in:
2025-06-11 09:39:30 +02:00
parent 6fe5882e7d
commit 66e2162f7a
17 changed files with 721 additions and 5 deletions

View File

@@ -510,7 +510,8 @@ def api_get_printers():
from models import get_db_session, Printer
db_session = get_db_session()
printers = db_session.query(Printer).filter(Printer.active == True).all()
# Alle Drucker für API-Abfragen anzeigen (unabhängig von active-Status)
printers = db_session.query(Printer).all()
printer_list = []
for printer in printers:
@@ -545,7 +546,8 @@ def api_get_printer_status():
from utils.tapo_controller import tapo_controller
db_session = get_db_session()
printers = db_session.query(Printer).filter(Printer.active == True).all()
# Alle Drucker für Status-Abfragen anzeigen (unabhängig von active-Status)
printers = db_session.query(Printer).all()
status_list = []
for printer in printers: