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 7b8e7bf
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions openedx_events/learning/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,9 +470,17 @@ 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.
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)
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 7b8e7bf

Please sign in to comment.