Skip to content

Commit

Permalink
Check for empty tables in zoom poll results (#897)
Browse files Browse the repository at this point in the history
Co-authored-by: Jason Walker <[email protected]>
  • Loading branch information
2 people authored and IanRFerguson committed Oct 13, 2023
1 parent 7a496a0 commit cbad5ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions parsons/zoom/zoom.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ def __process_poll_results(self, tbl: Table) -> Table:
`Returns`:
Parsons Table
"""
if tbl.num_rows == 0:
return tbl

# Add surrogate key
tbl.add_column("poll_taker_id", lambda _: str(uuid.uuid4()))
Expand Down

0 comments on commit cbad5ef

Please sign in to comment.