ExtendedAssignment

class ExtendedAssignment[source]

The full version of an assignment.

cgignore: SubmissionValidatorInputData | str | None

The cginore.

cgignore_version: CGIgnoreVersion | None

The version of the cignore file.

Should we send login links to all users before the available_at time.

fixed_max_rubric_points: float | None

The fixed value for the maximum that can be achieved in a rubric. This can be higher and lower than the actual max. Will be None if unset.

max_grade: float

The maximum grade you can get for this assignment. This is based around the idea that a 10 is a ‘perfect’ score. So if this value is 12 a user can score 2 additional bonus points. If this value is None it is unset and regarded as a 10.

grading: AssignmentPointsGradingSettings | AssignmentPercentageGradingSettings

Settings that influence how the grade for a submission can be determined. TODO: Should we also move max_grade and/or fixed_max_rubric_points to the grading object?

group_set: GroupSet | None

The group set of this assignment. This is None if this assignment is not a group assignment.

auto_test_id: int | None

The id of the AutoTest configuration connected to this assignment. This will always be given if there is a configuration connected to this assignment, even if you do not have permission to see the configuration itself.

files_upload_enabled: bool

Can you upload files to this assignment.

webhook_configuration: WebhookConfigurationEnabledAsJSON | WebhookConfigurationDisabledAsJSON

Settings for the git connection to this assignment.

editor_upload_enabled: bool

Can you use the editor for this assignment.

max_submissions: int | None

The maximum amount of submission a student may create, inclusive. The value null indicates that there is no limit.

cool_off_period: timedelta

The time period in which a person can submit at most amount_in_cool_off_period amount.

amount_in_cool_off_period: int

The maximum amount of time a user can submit within amount_in_cool_off_period. This value is always greater than or equal to 0, if this value is 0 a user can submit an unlimited amount of time.

reminder_time: datetime | None

The moment reminder emails will be sent. This will be None if you don’t have the permission to see this or if it is unset.

lms_name: str | None

The LMS providing this LTI assignment.

peer_feedback_settings: AssignmentPeerFeedbackSettings | None

The peer feedback settings for this assignment. If null this assignment is not a peer feedback assignment.

done_type: str | None

The kind of reminder that will be sent. If you don’t have the permission to see this it will always be null. If this is not set it will also be null.

done_email: str | None

The email where the done email will be sent to. This will be null if you do not have permission to see this information.

division_parent_id: int | None

The assignment id of the assignment that determines the grader division of this assignment. This will be null if you do not have permissions to see this information, or if no such parent is set.

anonymized_grading: AssignmentAnonymizationAlgo | None

The anonymization algorithm used for this assignment.

file_to_load_first: str | None

Optionally a glob for a file that should be loaded first in the file viewer. There is no guarantee that any file actually matches this glob.

submission_mode: AssignmentSubmissionMode

Which submission mode is set for the assignment.

id: int

The id of the assignment.

name: str

The name of the assignment.

created_at: datetime

When this assignment was created.

course_id: int

The course this assignment belongs to.

has_multiple_timeframes: bool

Does this assignment have multiple timeframes.

is_lti: bool

Is this an LTI assignment.

has_description: bool

Whether the assignment has liked description file.

restrictions: AssignmentRestriction

Whether the assignment is password restricted or not.

timeframe: TimeframeLike

Is the assignment available.

grade_availability: FixedGradeAvailability

What is grade availability of this assignment.

kind: AssignmentKind

What kind of assignment is this.