Skip to content

Commit

Permalink
Fix Zoom method by using correct post-processing method
Browse files Browse the repository at this point in the history
  • Loading branch information
austinweisgrau committed Jul 11, 2024
1 parent 61696b7 commit f0f16f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions parsons/zoom/zoom.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from parsons import Table
import datetime
import logging
from typing import Literal, Optional, Dict
from typing import Literal, Optional, Dict, Union
import uuid

logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -356,7 +356,7 @@ def get_meeting_all_polls_metadata(self, meeting_id) -> Table:

return self.__handle_nested_json(table=tbl, column="questions")

def get_past_meeting_poll_metadata(self, meeting_id) -> Table:
def get_past_meeting_poll_metadata(self, meeting_id) -> Union[Table, None]:
"""
List poll metadata of a past meeting.
Expand All @@ -379,7 +379,7 @@ def get_past_meeting_poll_metadata(self, meeting_id) -> Table:

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

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

def get_webinar_poll_metadata(self, webinar_id, poll_id) -> Table:
"""
Expand Down

0 comments on commit f0f16f1

Please sign in to comment.