🎨 style: update profile template and improve app.py functionality

This commit is contained in:
2025-05-02 18:38:59 +02:00
parent c9bbc6ff25
commit 084059449f
3 changed files with 29 additions and 7 deletions

3
app.py
View File

@@ -278,7 +278,8 @@ def admin_required(f):
@login_manager.user_loader
def load_user(id):
return User.query.get(int(id))
# Verwende session.get() anstelle von query.get() für SQLAlchemy 2.0 Kompatibilität
return db.session.get(User, int(id))
# Routes for authentication
@app.route('/login', methods=['GET', 'POST'])