fix: forum user stats tooltip showing 'Błąd' due to User.full_name attribute error
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions

User model has 'name', not 'full_name'. The incorrect attribute caused
every hover tooltip on forum usernames to show an error.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Maciej Pienczyn 2026-02-22 15:20:36 +01:00
parent 4389807221
commit f0a5ce5add

View File

@ -1602,7 +1602,7 @@ def user_forum_stats(user_id):
# Get user info
user = db.query(User).filter(User.id == user_id).first()
user_name = user.full_name if user else 'Nieznany'
user_name = user.name if user else 'Nieznany'
return jsonify({
'success': True,