Skip to content

Commit

Permalink
user retrival by username
Browse files Browse the repository at this point in the history
  • Loading branch information
manojp3 committed Aug 26, 2024
1 parent 1bf4fae commit bb9c502
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lms/djangoapps/discussion/rest_api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1882,7 +1882,7 @@ def get_course_discussion_user_stats(
course_stats_response = get_course_user_stats(course_key, params)

for user_stat in course_stats_response["user_stats"]:
user_stat["user_first_name"] = User.objects.get(user_stat["username"]).first_name
user_stat["user_first_name"] = User.objects.get(username=user_stat["username"]).first_name

if comma_separated_usernames:
updated_course_stats = add_stats_for_users_with_no_discussion_content(
Expand Down

0 comments on commit bb9c502

Please sign in to comment.