Skip to content

Commit

Permalink
Show display_name in export if user is owner
Browse files Browse the repository at this point in the history
  • Loading branch information
JOKUE2002 committed Oct 30, 2024
1 parent 280f823 commit 9703208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bitpoll/poll/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def poll(request, poll_url: str, export: bool=False):
row.extend(a)
writer.writerow(row)
for vote, votechoices in zip(poll_votes, vote_choice_matrix):
row = [vote.display_name if not current_poll.hide_participants else _('Hidden')]
row = [vote.display_name if not (current_poll.hide_participants and current_poll.current_user_is_owner(request)) else _('Hidden')]
row.append(vote.date_created.isoformat(timespec='seconds'))
row.extend([choice['value'].title if choice and choice['value'] else '' for choice in votechoices])
writer.writerow(row)
Expand Down

0 comments on commit 9703208

Please sign in to comment.