-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update
initialize
endpoint and create assessments/feedback
…
…endpoint in ORA Staff Grader (#2101) * feat: endpoint /api/ora_staff_grader/initialize upgraded to add more user data * feat: generate_assessment_data handlers added to fetch assessments given to and from a given user for a given submission * build: bumps version to 6.1.0
- Loading branch information
Showing
15 changed files
with
1,061 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
Initialization Information for Open Assessment Module | ||
""" | ||
|
||
__version__ = '6.0.34' | ||
__version__ = '6.1.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,25 @@ | ||
""" Constant strings used to identify what type of score an Assessment is. Used in the 'score_type' field """ | ||
|
||
from django.utils.translation import gettext as _ | ||
|
||
PEER_TYPE = "PE" | ||
SELF_TYPE = "SE" | ||
STAFF_TYPE = "ST" | ||
|
||
|
||
def score_type_to_string(score_type: str) -> str: | ||
""" | ||
Converts the given score type into its string representation. | ||
Args: | ||
score_type (str): System representation of the score type. | ||
Returns: | ||
(str) Representation of score_type as needed in Staff Grader Template. | ||
""" | ||
SCORE_TYPE_MAP = { | ||
PEER_TYPE: _("Peer"), | ||
SELF_TYPE: _("Self"), | ||
STAFF_TYPE: _("Staff"), | ||
} | ||
return SCORE_TYPE_MAP.get(score_type, _("Unknown")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.