Skip to content

Commit

Permalink
fix: do not export participants without name
Browse files Browse the repository at this point in the history
  • Loading branch information
dantetemplar committed Feb 14, 2024
1 parent 91a104f commit 672a73a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/api/participants/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@ async def get_list_of_all_users(
for run in paragraph.runs:
run.bold = True

participants = filter(lambda p: p.name, participants)
for i, participant in enumerate(participants, 1):
row_cells = table.add_row().cells
row_cells[0].text = str(i)
row_cells[1].text = participant.name
row_cells[1].text = participant.name or ""
row_cells[2].text = f"@{participant.alias}"

# set width for columns
Expand Down

0 comments on commit 672a73a

Please sign in to comment.