Skip to content

Commit

Permalink
refactor: update ora submission data
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanttV committed Apr 18, 2024
1 parent 6d94857 commit 46c0b97
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions openedx_events/learning/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,9 +470,21 @@ class ORASubmissionData:
Attributes defined to represent event when a user submits an ORA assignment.
Arguments:
id (str): identifier of the ORA submission.
file_downloads (List[ORAFileDownloadsData]): list of related files in the ORA submission.
uuid (str): The UUID of the ORA submission.
anonymous_user_id (str): Anonymous user ID of the user who submitted the ORA submission.
location (str): Location of the ORA submission.
attempt_number (int): Attempt number of the ORA submission.
created_at (datetime): Date and time when the ORA submission was created.
submitted_at (datetime): Date and time when the ORA submission was submitted.
answer (dict): Answer submitted by the user.
file_downloads (List[ORAFileDownloadsData]): List of related files in the ORA submission.
"""

id = attr.ib(type=str)
uuid = attr.ib(type=str)
anonymous_user_id = attr.ib(type=str)
location = attr.ib(type=str)
attempt_number = attr.ib(type=int)
created_at = attr.ib(type=datetime)
submitted_at = attr.ib(type=datetime)
answer = attr.ib(type=dict)
file_downloads = attr.ib(type=List[ORAFileDownloadsData], factory=list)

0 comments on commit 46c0b97

Please sign in to comment.