Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-ora2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-ora2
Commits
61227f71
Commit
61227f71
authored
Aug 04, 2014
by
Will Daly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update the validation messages for must grade / graded by values
parent
719bc205
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
openassessment/xblock/validation.py
+3
-3
No files found.
openassessment/xblock/validation.py
View file @
61227f71
...
...
@@ -118,13 +118,13 @@ def validate_assessments(assessments, current_assessments, is_released, _):
must_be_graded_by
=
assessment_dict
.
get
(
'must_be_graded_by'
)
if
must_grade
is
None
or
must_grade
<
1
:
return
(
False
,
_
(
'
The "must_g
rade" value must be a positive integer.'
))
return
(
False
,
_
(
'
In peer assessment, the "Must G
rade" value must be a positive integer.'
))
if
must_be_graded_by
is
None
or
must_be_graded_by
<
1
:
return
(
False
,
_
(
'
The "must_be_graded_b
y" value must be a positive integer.'
))
return
(
False
,
_
(
'
In peer assessment, the "Graded B
y" value must be a positive integer.'
))
if
must_grade
<
must_be_graded_by
:
return
(
False
,
_
(
'
The "must_grade" value must be greater than or equal to the "must_be_graded_b
y" value.'
))
return
(
False
,
_
(
'
In peer assessment, the "Must Grade" value must be greater than or equal to the "Graded B
y" value.'
))
# Student Training must have at least one example, and all
# examples must have unique answers.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment