Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
KasiaHinkson committed Feb 18, 2025
1 parent 0c0d039 commit 6b5da4d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions parsons/zoom/zoom.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ def __handle_nested_json(self, table: Table, column: str, version: int = 1) -> T
Parsons Table
"""
if version == 2:
return Table(table.unpack_list(column=column))
if column in table.columns:
return Table(table.unpack_list(column=column))
else:
return table

return Table(table.unpack_list(column=column)).unpack_dict(
column=f"{column}_0", prepend_value=f"{column}_"
Expand Down Expand Up @@ -470,7 +473,7 @@ def get_past_webinar_poll_metadata(self, webinar_id, version: int = 1) -> Table:

logger.info(f"Retrieved {tbl.num_rows} polls for meeting ID {webinar_id}")

return self.__handle_nested_json(table=tbl, column="prompts", version=version)
return self.__handle_nested_json(table=tbl, column="question_details", version=version)

def get_meeting_poll_results(self, meeting_id) -> Table:
"""
Expand Down

0 comments on commit 6b5da4d

Please sign in to comment.