🔧 Update: Enhance user settings API to support PATCH method

**Änderungen:**
-  user_management.py: Erweitert die API zur Aktualisierung von Benutzereinstellungen, um sowohl POST- als auch PATCH-Anfragen zu unterstützen.

**Ergebnis:**
- Verbesserte Flexibilität bei der Aktualisierung von Benutzereinstellungen durch Unterstützung von PATCH-Anfragen.

🤖 Generated with [Claude Code](https://claude.ai/code)
This commit is contained in:
2025-06-16 00:34:56 +02:00
parent 21f5a40cb0
commit 442d6d82dd
32 changed files with 220 additions and 1 deletions

View File

@ -192,7 +192,7 @@ def user_settings_api():
"settings": settings
})
elif request.method == 'POST':
elif request.method in ['POST', 'PATCH']:
# Einstellungen aktualisieren
data = request.get_json()

BIN
backend/database/myp.db-shm Normal file

Binary file not shown.

BIN
backend/database/myp.db-wal Normal file

Binary file not shown.

View File

@ -230,3 +230,8 @@
2025-06-15 23:56:58 - [admin] admin - [ERROR] ERROR - Fehler beim Laden des Admin-Dashboards: 'dict object' has no attribute 'online_printers'
2025-06-15 23:57:06 - [admin] admin - [INFO] INFO - Admin-Check für Funktion api_admin_system_health_alias: User authenticated: True, User ID: 1, Is Admin: True
2025-06-15 23:57:06 - [admin] admin - [INFO] INFO - Admin-Check für Funktion api_admin_system_health: User authenticated: True, User ID: 1, Is Admin: True
2025-06-16 00:33:54 - [admin] admin - [INFO] INFO - Admin-Check für Funktion delete_printer_api: User authenticated: True, User ID: 1, Is Admin: True
2025-06-16 00:33:54 - [admin] admin - [ERROR] ERROR - Fehler beim Löschen des Druckers 7: (sqlite3.IntegrityError) FOREIGN KEY constraint failed
[SQL: DELETE FROM printers WHERE printers.id = ?]
[parameters: (7,)]
(Background on this error at: https://sqlalche.me/e/20/gkpj)

View File

@ -33750,3 +33750,124 @@ NameError: name 'send_from_directory' is not defined
2025-06-16 00:24:03 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 00:24:03 - [app] app - [INFO] INFO - ✅ API: 7 Drucker abgerufen (include_inactive=False)
2025-06-16 00:24:03 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 00:33:41 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: ./database/myp.db
2025-06-16 00:33:43 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: development
2025-06-16 00:33:43 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: False
2025-06-16 00:33:43 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
2025-06-16 00:33:43 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
2025-06-16 00:33:43 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ MYP Development Environment Konfiguration aktiviert
2025-06-16 00:33:43 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: Development/Testing
2025-06-16 00:33:43 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: True
2025-06-16 00:33:43 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: True
2025-06-16 00:33:43 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
2025-06-16 00:33:43 - [app] app - [INFO] INFO - Admin-Berechtigungen beim Start korrigiert: 0 erstellt, 0 aktualisiert
2025-06-16 00:33:43 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP DEVELOPMENT-Umgebung
2025-06-16 00:33:43 - [app] app - [INFO] INFO - [STARTUP] 🏢 Mercedes-Benz TBA Marienfelde
2025-06-16 00:33:43 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: True
2025-06-16 00:33:43 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
2025-06-16 00:33:43 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
2025-06-16 00:33:43 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
2025-06-16 00:33:43 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
2025-06-16 00:33:44 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
2025-06-16 00:33:44 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
2025-06-16 00:33:44 - [app] app - [INFO] INFO - [STARTUP] Initialisiere statische Drucker...
2025-06-16 00:33:44 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 1 (192.168.0.100)
2025-06-16 00:33:44 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 2 (192.168.0.101)
2025-06-16 00:33:44 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 3 (192.168.0.102)
2025-06-16 00:33:44 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 4 (192.168.0.103)
2025-06-16 00:33:44 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 5 (192.168.0.104)
2025-06-16 00:33:44 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 6 (192.168.0.106)
2025-06-16 00:33:44 - [app] app - [INFO] INFO - ✅ Statische Drucker-Initialisierung abgeschlossen: 0 erstellt, 6 aktualisiert
2025-06-16 00:33:44 - [app] app - [INFO] INFO - 📍 Alle Drucker sind für Standort 'TBA Marienfelde' konfiguriert
2025-06-16 00:33:44 - [app] app - [INFO] INFO - 🌐 IP-Bereich: 192.168.0.100-106 (außer .105)
2025-06-16 00:33:44 - [app] app - [INFO] INFO - [STARTUP] ✅ Statische Drucker konfiguriert
2025-06-16 00:33:44 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
2025-06-16 00:33:44 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
2025-06-16 00:33:44 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
2025-06-16 00:33:44 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
2025-06-16 00:33:44 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
2025-06-16 00:33:44 - [app] app - [INFO] INFO - Optimierte SQLite-Engine erstellt: ./database/myp.db
2025-06-16 00:33:46 - [app] app - [INFO] INFO - [CONFIG] Erkannte Umgebung: development
2025-06-16 00:33:46 - [app] app - [INFO] INFO - [CONFIG] Production-Modus: False
2025-06-16 00:33:46 - [app] app - [INFO] INFO - [CONFIG] Verwende Development-Konfiguration
2025-06-16 00:33:46 - [app] app - [INFO] INFO - [DEVELOPMENT] Aktiviere Development-Konfiguration
2025-06-16 00:33:46 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ MYP Development Environment Konfiguration aktiviert
2025-06-16 00:33:46 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Environment: Development/Testing
2025-06-16 00:33:46 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ Debug Mode: True
2025-06-16 00:33:46 - [app] app - [INFO] INFO - [DEVELOPMENT] ✅ SQL Echo: True
2025-06-16 00:33:46 - [app] app - [INFO] INFO - SQLite für Raspberry Pi optimiert (reduzierte Cache-Größe, SD-Karten I/O)
2025-06-16 00:33:46 - [app] app - [INFO] INFO - Admin-Berechtigungen beim Start korrigiert: 0 erstellt, 0 aktualisiert
2025-06-16 00:33:46 - [app] app - [INFO] INFO - [STARTUP] 🚀 Starte MYP DEVELOPMENT-Umgebung
2025-06-16 00:33:46 - [app] app - [INFO] INFO - [STARTUP] 🏢 Mercedes-Benz TBA Marienfelde
2025-06-16 00:33:46 - [app] app - [INFO] INFO - [STARTUP] 🔒 Air-Gapped: True
2025-06-16 00:33:46 - [app] app - [INFO] INFO - [STARTUP] Initialisiere Datenbank...
2025-06-16 00:33:46 - [app] app - [INFO] INFO - Datenbank mit Optimierungen initialisiert
2025-06-16 00:33:46 - [app] app - [INFO] INFO - [STARTUP] ✅ Datenbank initialisiert
2025-06-16 00:33:46 - [app] app - [INFO] INFO - [STARTUP] Prüfe Initial-Admin...
2025-06-16 00:33:47 - [app] app - [INFO] INFO - Admin-Benutzer admin (admin@mercedes-benz.com) existiert bereits. Passwort wurde zurückgesetzt.
2025-06-16 00:33:47 - [app] app - [INFO] INFO - [STARTUP] ✅ Admin-Benutzer geprüft
2025-06-16 00:33:47 - [app] app - [INFO] INFO - [STARTUP] Initialisiere statische Drucker...
2025-06-16 00:33:47 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 1 (192.168.0.100)
2025-06-16 00:33:47 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 2 (192.168.0.101)
2025-06-16 00:33:47 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 3 (192.168.0.102)
2025-06-16 00:33:47 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 4 (192.168.0.103)
2025-06-16 00:33:47 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 5 (192.168.0.104)
2025-06-16 00:33:47 - [app] app - [INFO] INFO - Drucker aktualisiert: Drucker 6 (192.168.0.106)
2025-06-16 00:33:47 - [app] app - [INFO] INFO - ✅ Statische Drucker-Initialisierung abgeschlossen: 0 erstellt, 6 aktualisiert
2025-06-16 00:33:47 - [app] app - [INFO] INFO - 📍 Alle Drucker sind für Standort 'TBA Marienfelde' konfiguriert
2025-06-16 00:33:47 - [app] app - [INFO] INFO - 🌐 IP-Bereich: 192.168.0.100-106 (außer .105)
2025-06-16 00:33:47 - [app] app - [INFO] INFO - [STARTUP] ✅ Statische Drucker konfiguriert
2025-06-16 00:33:47 - [app] app - [INFO] INFO - [STARTUP] Starte Queue Manager...
2025-06-16 00:33:47 - [app] app - [INFO] INFO - [STARTUP] ✅ Queue Manager gestartet
2025-06-16 00:33:47 - [app] app - [INFO] INFO - [STARTUP] Starte Job Scheduler...
2025-06-16 00:33:47 - [app] app - [INFO] INFO - [STARTUP] ✅ Job Scheduler gestartet
2025-06-16 00:33:47 - [app] app - [INFO] INFO - [STARTUP] 🌐 Server startet auf http://0.0.0.0:5000
2025-06-16 00:33:48 - [app] app - [INFO] INFO - Locating template 'printers.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates
-> found ('/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/printers.html')
2025-06-16 00:33:48 - [app] app - [INFO] INFO - Locating template 'base.html':
1: trying loader of application '__main__'
class: jinja2.loaders.FileSystemLoader
encoding: 'utf-8'
followlinks: False
searchpath:
- /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates
-> found ('/cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend/templates/base.html')
2025-06-16 00:33:48 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 00:33:49 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-16 00:33:49 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-16 00:33:49 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 00:33:49 - [app] app - [INFO] INFO - ✅ API: 7 Drucker abgerufen (include_inactive=False)
2025-06-16 00:33:49 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 00:33:49 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-16 00:33:49 - [app] app - [INFO] INFO - ✅ API: 7 Drucker abgerufen (include_inactive=False)
2025-06-16 00:33:49 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 00:33:51 - [app] app - [DEBUG] DEBUG - Request: GET /sw.js
2025-06-16 00:33:51 - [app] app - [DEBUG] DEBUG - Response: 304
2025-06-16 00:33:54 - [app] app - [DEBUG] DEBUG - Request: DELETE /api/admin/printers/7
2025-06-16 00:33:54 - [app] app - [DEBUG] DEBUG - Response: 500
2025-06-16 00:34:01 - [app] app - [DEBUG] DEBUG - Request: GET /printers
2025-06-16 00:34:01 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 00:34:01 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-16 00:34:01 - [app] app - [INFO] INFO - ✅ API: 7 Drucker abgerufen (include_inactive=False)
2025-06-16 00:34:01 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 00:34:02 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-16 00:34:02 - [app] app - [INFO] INFO - ✅ API: 7 Drucker abgerufen (include_inactive=False)
2025-06-16 00:34:02 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 00:34:02 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-16 00:34:02 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 00:34:03 - [app] app - [DEBUG] DEBUG - Request: GET /sw.js
2025-06-16 00:34:03 - [app] app - [DEBUG] DEBUG - Response: 304
2025-06-16 00:34:31 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-16 00:34:31 - [app] app - [INFO] INFO - ✅ API: 7 Drucker abgerufen (include_inactive=False)
2025-06-16 00:34:31 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 00:34:32 - [app] app - [DEBUG] DEBUG - Request: GET /api/printers
2025-06-16 00:34:32 - [app] app - [INFO] INFO - ✅ API: 7 Drucker abgerufen (include_inactive=False)
2025-06-16 00:34:32 - [app] app - [DEBUG] DEBUG - Response: 200
2025-06-16 00:34:32 - [app] app - [DEBUG] DEBUG - Request: GET /api/notifications
2025-06-16 00:34:32 - [app] app - [DEBUG] DEBUG - Response: 200

View File

@ -459,3 +459,7 @@
2025-06-16 00:22:55 - [data_management] data_management - [INFO] INFO - 📊 Massive Konsolidierung: 3 Dateien → 1 Datei (67% Reduktion)
2025-06-16 00:22:57 - [data_management] data_management - [INFO] INFO - ✅ Data Management Module initialisiert
2025-06-16 00:22:57 - [data_management] data_management - [INFO] INFO - 📊 Massive Konsolidierung: 3 Dateien → 1 Datei (67% Reduktion)
2025-06-16 00:33:42 - [data_management] data_management - [INFO] INFO - ✅ Data Management Module initialisiert
2025-06-16 00:33:42 - [data_management] data_management - [INFO] INFO - 📊 Massive Konsolidierung: 3 Dateien → 1 Datei (67% Reduktion)
2025-06-16 00:33:45 - [data_management] data_management - [INFO] INFO - ✅ Data Management Module initialisiert
2025-06-16 00:33:45 - [data_management] data_management - [INFO] INFO - 📊 Massive Konsolidierung: 3 Dateien → 1 Datei (67% Reduktion)

View File

@ -244,3 +244,5 @@
2025-06-16 00:21:35 - [energy_monitoring] energy_monitoring - [INFO] INFO - ✅ Energiemonitoring-Blueprint initialisiert
2025-06-16 00:22:56 - [energy_monitoring] energy_monitoring - [INFO] INFO - ✅ Energiemonitoring-Blueprint initialisiert
2025-06-16 00:22:58 - [energy_monitoring] energy_monitoring - [INFO] INFO - ✅ Energiemonitoring-Blueprint initialisiert
2025-06-16 00:33:43 - [energy_monitoring] energy_monitoring - [INFO] INFO - ✅ Energiemonitoring-Blueprint initialisiert
2025-06-16 00:33:46 - [energy_monitoring] energy_monitoring - [INFO] INFO - ✅ Energiemonitoring-Blueprint initialisiert

View File

@ -1437,3 +1437,11 @@
2025-06-16 00:22:57 - [hardware_integration] hardware_integration - [INFO] INFO - ✅ Printer Monitor initialisiert
2025-06-16 00:22:57 - [hardware_integration] hardware_integration - [INFO] INFO - ✅ Hardware Integration Module initialisiert
2025-06-16 00:22:57 - [hardware_integration] hardware_integration - [INFO] INFO - 📊 Massive Konsolidierung: 2 Dateien → 1 Datei (50% Reduktion)
2025-06-16 00:33:41 - [hardware_integration] hardware_integration - [INFO] INFO - ✅ PyP100 (TP-Link Tapo) verfügbar
2025-06-16 00:33:41 - [hardware_integration] hardware_integration - [INFO] INFO - ✅ Printer Monitor initialisiert
2025-06-16 00:33:41 - [hardware_integration] hardware_integration - [INFO] INFO - ✅ Hardware Integration Module initialisiert
2025-06-16 00:33:41 - [hardware_integration] hardware_integration - [INFO] INFO - 📊 Massive Konsolidierung: 2 Dateien → 1 Datei (50% Reduktion)
2025-06-16 00:33:45 - [hardware_integration] hardware_integration - [INFO] INFO - ✅ PyP100 (TP-Link Tapo) verfügbar
2025-06-16 00:33:45 - [hardware_integration] hardware_integration - [INFO] INFO - ✅ Printer Monitor initialisiert
2025-06-16 00:33:45 - [hardware_integration] hardware_integration - [INFO] INFO - ✅ Hardware Integration Module initialisiert
2025-06-16 00:33:45 - [hardware_integration] hardware_integration - [INFO] INFO - 📊 Massive Konsolidierung: 2 Dateien → 1 Datei (50% Reduktion)

View File

@ -901,3 +901,9 @@
2025-06-16 00:22:58 - [job_queue_system] job_queue_system - [INFO] INFO - Queue Manager gestartet (Legacy-Kompatibilität)
2025-06-16 00:24:19 - [job_queue_system] job_queue_system - [INFO] INFO - Queue Manager gestoppt (Legacy-Kompatibilität)
2025-06-16 00:24:19 - [job_queue_system] job_queue_system - [INFO] INFO - Queue Manager gestoppt (Legacy-Kompatibilität)
2025-06-16 00:33:42 - [job_queue_system] job_queue_system - [INFO] INFO - ✅ Job & Queue System Module initialisiert
2025-06-16 00:33:42 - [job_queue_system] job_queue_system - [INFO] INFO - 📊 MASSIVE Konsolidierung: 4 Dateien → 1 Datei (75% Reduktion)
2025-06-16 00:33:44 - [job_queue_system] job_queue_system - [INFO] INFO - Queue Manager gestartet (Legacy-Kompatibilität)
2025-06-16 00:33:45 - [job_queue_system] job_queue_system - [INFO] INFO - ✅ Job & Queue System Module initialisiert
2025-06-16 00:33:45 - [job_queue_system] job_queue_system - [INFO] INFO - 📊 MASSIVE Konsolidierung: 4 Dateien → 1 Datei (75% Reduktion)
2025-06-16 00:33:47 - [job_queue_system] job_queue_system - [INFO] INFO - Queue Manager gestartet (Legacy-Kompatibilität)

View File

@ -459,3 +459,7 @@
2025-06-16 00:22:56 - [monitoring_analytics] monitoring_analytics - [INFO] INFO - 📊 MASSIVE Konsolidierung: 3 Dateien → 1 Datei (67% Reduktion)
2025-06-16 00:22:58 - [monitoring_analytics] monitoring_analytics - [INFO] INFO - ✅ Monitoring & Analytics Module initialisiert
2025-06-16 00:22:58 - [monitoring_analytics] monitoring_analytics - [INFO] INFO - 📊 MASSIVE Konsolidierung: 3 Dateien → 1 Datei (67% Reduktion)
2025-06-16 00:33:43 - [monitoring_analytics] monitoring_analytics - [INFO] INFO - ✅ Monitoring & Analytics Module initialisiert
2025-06-16 00:33:43 - [monitoring_analytics] monitoring_analytics - [INFO] INFO - 📊 MASSIVE Konsolidierung: 3 Dateien → 1 Datei (67% Reduktion)
2025-06-16 00:33:46 - [monitoring_analytics] monitoring_analytics - [INFO] INFO - ✅ Monitoring & Analytics Module initialisiert
2025-06-16 00:33:46 - [monitoring_analytics] monitoring_analytics - [INFO] INFO - 📊 MASSIVE Konsolidierung: 3 Dateien → 1 Datei (67% Reduktion)

View File

@ -168,3 +168,5 @@ WHERE users.role = ?]
2025-06-16 00:21:35 - [permissions] permissions - [INFO] INFO - Admin-Berechtigungen korrigiert: 0 erstellt, 0 aktualisiert
2025-06-16 00:22:56 - [permissions] permissions - [INFO] INFO - Admin-Berechtigungen korrigiert: 0 erstellt, 0 aktualisiert
2025-06-16 00:22:58 - [permissions] permissions - [INFO] INFO - Admin-Berechtigungen korrigiert: 0 erstellt, 0 aktualisiert
2025-06-16 00:33:43 - [permissions] permissions - [INFO] INFO - Admin-Berechtigungen korrigiert: 0 erstellt, 0 aktualisiert
2025-06-16 00:33:46 - [permissions] permissions - [INFO] INFO - Admin-Berechtigungen korrigiert: 0 erstellt, 0 aktualisiert

View File

@ -1044,3 +1044,20 @@
2025-06-16 00:23:59 - [scheduler] scheduler - [INFO] INFO - 🚀 Starte geplanten Job 1: Gastauftrag: testeadmin@example.com
2025-06-16 00:24:06 - [scheduler] scheduler - [ERROR] ERROR - ❌ Fehler bei Überprüfung der Jobs: Instance <Job at 0x7f4cdcf4b550> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: https://sqlalche.me/e/20/bhk3)
2025-06-16 00:24:07 - [scheduler] scheduler - [ERROR] ERROR - ❌ Fehler bei Überprüfung der Jobs: Instance <Job at 0x7f6c71660750> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: https://sqlalche.me/e/20/bhk3)
2025-06-16 00:33:41 - [scheduler] scheduler - [INFO] INFO - Task check_jobs registriert: Intervall 30s, Enabled: True
2025-06-16 00:33:44 - [scheduler] scheduler - [INFO] INFO - Scheduler-Thread gestartet
2025-06-16 00:33:44 - [scheduler] scheduler - [INFO] INFO - 🚀 Starte geplanten Job 1: Gastauftrag: testeadmin@example.com
2025-06-16 00:33:44 - [scheduler] scheduler - [INFO] INFO - Scheduler gestartet
2025-06-16 00:33:45 - [scheduler] scheduler - [INFO] INFO - Task check_jobs registriert: Intervall 30s, Enabled: True
2025-06-16 00:33:47 - [scheduler] scheduler - [INFO] INFO - Scheduler-Thread gestartet
2025-06-16 00:33:47 - [scheduler] scheduler - [INFO] INFO - Scheduler gestartet
2025-06-16 00:33:47 - [scheduler] scheduler - [INFO] INFO - 🚀 Starte geplanten Job 1: Gastauftrag: testeadmin@example.com
2025-06-16 00:33:52 - [scheduler] scheduler - [ERROR] ERROR - ❌ Fehler bei Überprüfung der Jobs: Instance <Job at 0x7f6cbf9fdd50> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: https://sqlalche.me/e/20/bhk3)
2025-06-16 00:33:56 - [scheduler] scheduler - [ERROR] ERROR - ❌ Fehler bei Überprüfung der Jobs: Instance <Job at 0x7f716ffea6d0> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: https://sqlalche.me/e/20/bhk3)
2025-06-16 00:34:14 - [scheduler] scheduler - [INFO] INFO - 🚀 Starte geplanten Job 1: Gastauftrag: testeadmin@example.com
2025-06-16 00:34:18 - [scheduler] scheduler - [INFO] INFO - 🚀 Starte geplanten Job 1: Gastauftrag: testeadmin@example.com
2025-06-16 00:34:23 - [scheduler] scheduler - [ERROR] ERROR - ❌ Fehler bei Überprüfung der Jobs: Instance <Job at 0x7f6cbe922250> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: https://sqlalche.me/e/20/bhk3)
2025-06-16 00:34:26 - [scheduler] scheduler - [ERROR] ERROR - ❌ Fehler bei Überprüfung der Jobs: Instance <Job at 0x7f716d381b10> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: https://sqlalche.me/e/20/bhk3)
2025-06-16 00:34:45 - [scheduler] scheduler - [INFO] INFO - 🚀 Starte geplanten Job 1: Gastauftrag: testeadmin@example.com
2025-06-16 00:34:48 - [scheduler] scheduler - [INFO] INFO - 🚀 Starte geplanten Job 1: Gastauftrag: testeadmin@example.com
2025-06-16 00:34:53 - [scheduler] scheduler - [ERROR] ERROR - ❌ Fehler bei Überprüfung der Jobs: Instance <Job at 0x7f6cbe916f10> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: https://sqlalche.me/e/20/bhk3)

View File

@ -689,3 +689,9 @@
2025-06-16 00:22:57 - [security_suite] security_suite - [INFO] INFO - ✅ Security Suite Module initialisiert
2025-06-16 00:22:57 - [security_suite] security_suite - [INFO] INFO - 📊 Massive Konsolidierung: 3 Dateien → 1 Datei (67% Reduktion)
2025-06-16 00:22:58 - [security_suite] security_suite - [INFO] INFO - 🔒 Security Suite initialisiert
2025-06-16 00:33:42 - [security_suite] security_suite - [INFO] INFO - ✅ Security Suite Module initialisiert
2025-06-16 00:33:42 - [security_suite] security_suite - [INFO] INFO - 📊 Massive Konsolidierung: 3 Dateien → 1 Datei (67% Reduktion)
2025-06-16 00:33:43 - [security_suite] security_suite - [INFO] INFO - 🔒 Security Suite initialisiert
2025-06-16 00:33:45 - [security_suite] security_suite - [INFO] INFO - ✅ Security Suite Module initialisiert
2025-06-16 00:33:45 - [security_suite] security_suite - [INFO] INFO - 📊 Massive Konsolidierung: 3 Dateien → 1 Datei (67% Reduktion)
2025-06-16 00:33:46 - [security_suite] security_suite - [INFO] INFO - 🔒 Security Suite initialisiert

View File

@ -1818,3 +1818,17 @@
2025-06-16 00:22:58 - [startup] startup - [INFO] INFO - 📁 Arbeitsverzeichnis: /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend
2025-06-16 00:22:58 - [startup] startup - [INFO] INFO - ⏰ Startzeit: 2025-06-16T00:22:58.272339
2025-06-16 00:22:58 - [startup] startup - [INFO] INFO - ==================================================
2025-06-16 00:33:43 - [startup] startup - [INFO] INFO - ==================================================
2025-06-16 00:33:43 - [startup] startup - [INFO] INFO - [START] MYP Platform Backend wird gestartet...
2025-06-16 00:33:43 - [startup] startup - [INFO] INFO - 🐍 Python Version: 3.11.2 (main, Mar 05 2023, 19:08:04) [GCC]
2025-06-16 00:33:43 - [startup] startup - [INFO] INFO - 💻 Betriebssystem: posix (linux)
2025-06-16 00:33:43 - [startup] startup - [INFO] INFO - 📁 Arbeitsverzeichnis: /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend
2025-06-16 00:33:43 - [startup] startup - [INFO] INFO - ⏰ Startzeit: 2025-06-16T00:33:43.300286
2025-06-16 00:33:43 - [startup] startup - [INFO] INFO - ==================================================
2025-06-16 00:33:46 - [startup] startup - [INFO] INFO - ==================================================
2025-06-16 00:33:46 - [startup] startup - [INFO] INFO - [START] MYP Platform Backend wird gestartet...
2025-06-16 00:33:46 - [startup] startup - [INFO] INFO - 🐍 Python Version: 3.11.2 (main, Mar 05 2023, 19:08:04) [GCC]
2025-06-16 00:33:46 - [startup] startup - [INFO] INFO - 💻 Betriebssystem: posix (linux)
2025-06-16 00:33:46 - [startup] startup - [INFO] INFO - 📁 Arbeitsverzeichnis: /cbin/C0S1-cernel/C02L2/Dateiverwaltung/nextcloud/core/files/3_Beruf_Ausbildung_und_Schule/IHK-Abschlussprüfung/Projektarbeit-MYP/backend
2025-06-16 00:33:46 - [startup] startup - [INFO] INFO - ⏰ Startzeit: 2025-06-16T00:33:46.587071
2025-06-16 00:33:46 - [startup] startup - [INFO] INFO - ==================================================

View File

@ -1095,3 +1095,27 @@
2025-06-16 00:24:06 - [tapo_controller] tapo_controller - [ERROR] ERROR - ❌ Alle 3 Versuche fehlgeschlagen beim einschalten der Tapo-Steckdose 192.168.0.100
2025-06-16 00:24:07 - [tapo_controller] tapo_controller - [WARNING] WARNING - ⚠️ Versuch 3/3 fehlgeschlagen beim einschalten von 192.168.0.100: HTTPConnectionPool(host='192.168.1.101', port=3128): Read timed out. (read timeout=2)
2025-06-16 00:24:07 - [tapo_controller] tapo_controller - [ERROR] ERROR - ❌ Alle 3 Versuche fehlgeschlagen beim einschalten der Tapo-Steckdose 192.168.0.100
2025-06-16 00:33:41 - [tapo_controller] tapo_controller - [INFO] INFO - ✅ tapo controller initialisiert
2025-06-16 00:33:45 - [tapo_controller] tapo_controller - [INFO] INFO - ✅ tapo controller initialisiert
2025-06-16 00:33:46 - [tapo_controller] tapo_controller - [WARNING] WARNING - ⚠️ Versuch 1/3 fehlgeschlagen beim einschalten von 192.168.0.100: HTTPConnectionPool(host='192.168.1.101', port=3128): Read timed out. (read timeout=2)
2025-06-16 00:33:49 - [tapo_controller] tapo_controller - [WARNING] WARNING - ⚠️ Versuch 2/3 fehlgeschlagen beim einschalten von 192.168.0.100: HTTPConnectionPool(host='192.168.1.101', port=3128): Read timed out. (read timeout=2)
2025-06-16 00:33:49 - [tapo_controller] tapo_controller - [WARNING] WARNING - ⚠️ Versuch 1/3 fehlgeschlagen beim einschalten von 192.168.0.100: HTTPConnectionPool(host='192.168.1.101', port=3128): Read timed out. (read timeout=2)
2025-06-16 00:33:52 - [tapo_controller] tapo_controller - [WARNING] WARNING - ⚠️ Versuch 3/3 fehlgeschlagen beim einschalten von 192.168.0.100: HTTPConnectionPool(host='192.168.1.101', port=3128): Read timed out. (read timeout=2)
2025-06-16 00:33:52 - [tapo_controller] tapo_controller - [ERROR] ERROR - ❌ Alle 3 Versuche fehlgeschlagen beim einschalten der Tapo-Steckdose 192.168.0.100
2025-06-16 00:33:52 - [tapo_controller] tapo_controller - [WARNING] WARNING - ⚠️ Versuch 2/3 fehlgeschlagen beim einschalten von 192.168.0.100: HTTPConnectionPool(host='192.168.1.101', port=3128): Read timed out. (read timeout=2)
2025-06-16 00:33:56 - [tapo_controller] tapo_controller - [WARNING] WARNING - ⚠️ Versuch 3/3 fehlgeschlagen beim einschalten von 192.168.0.100: HTTPConnectionPool(host='192.168.1.101', port=3128): Read timed out. (read timeout=2)
2025-06-16 00:33:56 - [tapo_controller] tapo_controller - [ERROR] ERROR - ❌ Alle 3 Versuche fehlgeschlagen beim einschalten der Tapo-Steckdose 192.168.0.100
2025-06-16 00:34:16 - [tapo_controller] tapo_controller - [WARNING] WARNING - ⚠️ Versuch 1/3 fehlgeschlagen beim einschalten von 192.168.0.100: HTTPConnectionPool(host='192.168.1.101', port=3128): Read timed out. (read timeout=2)
2025-06-16 00:34:20 - [tapo_controller] tapo_controller - [WARNING] WARNING - ⚠️ Versuch 2/3 fehlgeschlagen beim einschalten von 192.168.0.100: HTTPConnectionPool(host='192.168.1.101', port=3128): Read timed out. (read timeout=2)
2025-06-16 00:34:20 - [tapo_controller] tapo_controller - [WARNING] WARNING - ⚠️ Versuch 1/3 fehlgeschlagen beim einschalten von 192.168.0.100: HTTPConnectionPool(host='192.168.1.101', port=3128): Read timed out. (read timeout=2)
2025-06-16 00:34:23 - [tapo_controller] tapo_controller - [WARNING] WARNING - ⚠️ Versuch 3/3 fehlgeschlagen beim einschalten von 192.168.0.100: HTTPConnectionPool(host='192.168.1.101', port=3128): Read timed out. (read timeout=2)
2025-06-16 00:34:23 - [tapo_controller] tapo_controller - [ERROR] ERROR - ❌ Alle 3 Versuche fehlgeschlagen beim einschalten der Tapo-Steckdose 192.168.0.100
2025-06-16 00:34:23 - [tapo_controller] tapo_controller - [WARNING] WARNING - ⚠️ Versuch 2/3 fehlgeschlagen beim einschalten von 192.168.0.100: HTTPConnectionPool(host='192.168.1.101', port=3128): Read timed out. (read timeout=2)
2025-06-16 00:34:26 - [tapo_controller] tapo_controller - [WARNING] WARNING - ⚠️ Versuch 3/3 fehlgeschlagen beim einschalten von 192.168.0.100: HTTPConnectionPool(host='192.168.1.101', port=3128): Read timed out. (read timeout=2)
2025-06-16 00:34:26 - [tapo_controller] tapo_controller - [ERROR] ERROR - ❌ Alle 3 Versuche fehlgeschlagen beim einschalten der Tapo-Steckdose 192.168.0.100
2025-06-16 00:34:47 - [tapo_controller] tapo_controller - [WARNING] WARNING - ⚠️ Versuch 1/3 fehlgeschlagen beim einschalten von 192.168.0.100: HTTPConnectionPool(host='192.168.1.101', port=3128): Read timed out. (read timeout=2)
2025-06-16 00:34:50 - [tapo_controller] tapo_controller - [WARNING] WARNING - ⚠️ Versuch 2/3 fehlgeschlagen beim einschalten von 192.168.0.100: HTTPConnectionPool(host='192.168.1.101', port=3128): Read timed out. (read timeout=2)
2025-06-16 00:34:50 - [tapo_controller] tapo_controller - [WARNING] WARNING - ⚠️ Versuch 1/3 fehlgeschlagen beim einschalten von 192.168.0.100: HTTPConnectionPool(host='192.168.1.101', port=3128): Read timed out. (read timeout=2)
2025-06-16 00:34:53 - [tapo_controller] tapo_controller - [WARNING] WARNING - ⚠️ Versuch 3/3 fehlgeschlagen beim einschalten von 192.168.0.100: HTTPConnectionPool(host='192.168.1.101', port=3128): Read timed out. (read timeout=2)
2025-06-16 00:34:53 - [tapo_controller] tapo_controller - [ERROR] ERROR - ❌ Alle 3 Versuche fehlgeschlagen beim einschalten der Tapo-Steckdose 192.168.0.100
2025-06-16 00:34:53 - [tapo_controller] tapo_controller - [WARNING] WARNING - ⚠️ Versuch 2/3 fehlgeschlagen beim einschalten von 192.168.0.100: HTTPConnectionPool(host='192.168.1.101', port=3128): Read timed out. (read timeout=2)

View File

@ -196,3 +196,5 @@
2025-06-16 00:21:35 - [tapo_status_manager] tapo_status_manager - [INFO] INFO - TapoStatusManager mit Session-Caching initialisiert
2025-06-16 00:22:55 - [tapo_status_manager] tapo_status_manager - [INFO] INFO - TapoStatusManager mit Session-Caching initialisiert
2025-06-16 00:22:57 - [tapo_status_manager] tapo_status_manager - [INFO] INFO - TapoStatusManager mit Session-Caching initialisiert
2025-06-16 00:33:41 - [tapo_status_manager] tapo_status_manager - [INFO] INFO - TapoStatusManager mit Session-Caching initialisiert
2025-06-16 00:33:45 - [tapo_status_manager] tapo_status_manager - [INFO] INFO - TapoStatusManager mit Session-Caching initialisiert

View File

@ -621,3 +621,7 @@
2025-06-16 00:22:55 - [utilities_collection] utilities_collection - [INFO] INFO - 🚨 ALLERLETZTE MEGA-Konsolidierung: 12+ Dateien → 1 Datei (90%+ Reduktion)
2025-06-16 00:22:57 - [utilities_collection] utilities_collection - [INFO] INFO - ✅ Utilities Collection initialisiert
2025-06-16 00:22:57 - [utilities_collection] utilities_collection - [INFO] INFO - 🚨 ALLERLETZTE MEGA-Konsolidierung: 12+ Dateien → 1 Datei (90%+ Reduktion)
2025-06-16 00:33:41 - [utilities_collection] utilities_collection - [INFO] INFO - ✅ Utilities Collection initialisiert
2025-06-16 00:33:41 - [utilities_collection] utilities_collection - [INFO] INFO - 🚨 ALLERLETZTE MEGA-Konsolidierung: 12+ Dateien → 1 Datei (90%+ Reduktion)
2025-06-16 00:33:44 - [utilities_collection] utilities_collection - [INFO] INFO - ✅ Utilities Collection initialisiert
2025-06-16 00:33:44 - [utilities_collection] utilities_collection - [INFO] INFO - 🚨 ALLERLETZTE MEGA-Konsolidierung: 12+ Dateien → 1 Datei (90%+ Reduktion)