Skip to content

Commit

Permalink
[frontend/scoreboard plugin] display username if no real name is set (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Drumor committed Jun 13, 2022
1 parent 08bd171 commit 0cfc673
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions inginious/frontend/plugins/scoreboard/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,7 @@ def GET_AUTH(self, courseid, scoreboardid): # pylint: disable=arguments-differ
line.append("")

# Users
line.append(",".join(sorted([users_realname[u] for u in user])))

line.append(",".join(sorted([users_realname[u] if users_realname.get(u, '') else u for u in user])))
if len(scoreboard_content) == 1:
line.append(overall_result_per_user[user]["total"])
else:
Expand Down

0 comments on commit 0cfc673

Please sign in to comment.