🎨 style: update profile template and improve app.py functionality
This commit is contained in:
3
app.py
3
app.py
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user