Skip to content

Commit c6335eb

Browse files
committed
Added access to "environment" field in assignments, v0.2.25
1 parent 93d33a0 commit c6335eb

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

codepost/models/assignments.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,20 @@ class Assignments(
4949
"See Who can view a submission? for more details.")),
5050
"rubricCategories": (_typing.List[_rubric_categories.RubricCategories], "A list of RubricCategories, which constitute this assignment's rubric."),
5151
"fileTemplates": (_typing.List[_file_templates.FileTemplates], "A list of FileTemplates belonging to this assignment."),
52-
"testCategories": (_typing.List[_test_categories.TestCategories], "A list of Test Categories belonging to this assignment."),
5352
"sortKey": (int, "Key that defines how Assignments are sorted within the codePost UI."),
5453
"mean": (int, ("The mean grade calculated over finalized submissions for this assignment. " +
5554
"null if no submissions have been finalized.")),
5655
"median": (int, ("The median grade calculated over finalized submissions for this assignment. " +
5756
"null if no submissions have been finalized.")),
57+
58+
###################################################################################################
59+
# Autograder
60+
###################################################################################################
61+
"testCategories": (_typing.List[_test_categories.TestCategories], "A list of Test Categories belonging to this assignment."),
62+
"environment": (int, ("The `Environment` object which this assignment is tied to, if the "
63+
"autograder has been enabled for this assignment.")),
64+
65+
5866
###################################################################################################
5967
# Settings
6068
###################################################################################################

codepost/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Version number
2-
__version__ = "0.2.24"
2+
__version__ = "0.2.25"

0 commit comments

Comments
 (0)