📚 Improved backend code structure & logging consistency 🖥️🔍
This commit is contained in:
@ -880,6 +880,12 @@ def get_user_activity_chart():
|
||||
"""
|
||||
try:
|
||||
db_session = get_db_session()
|
||||
if db_session is None:
|
||||
api_logger.error("Datenbankverbindung fehlgeschlagen")
|
||||
return jsonify({
|
||||
'error': 'Datenbankverbindung fehlgeschlagen',
|
||||
'message': 'Keine Verbindung zur Datenbank möglich'
|
||||
}), 500
|
||||
|
||||
# Top 10 aktivste Benutzer (nach Job-Anzahl)
|
||||
from sqlalchemy import func
|
||||
|
Reference in New Issue
Block a user