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
b4fd1500
Commit
b4fd1500
authored
Mar 11, 2014
by
Stephen Sanchez
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #101 from edx/sanchez/bug-peer-submissions
Fixing peer assessment for required grading of 1
parents
8456949b
75469d7a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
apps/openassessment/assessment/peer_api.py
+2
-2
apps/openassessment/assessment/test/test_peer.py
+1
-1
apps/openassessment/xblock/static/xml/poverty_rubric_example.xml
+2
-2
No files found.
apps/openassessment/assessment/peer_api.py
View file @
b4fd1500
...
...
@@ -646,7 +646,7 @@ def _get_submission_for_review(workflow, graded_by, over_grading=False):
"1"
"""
order
=
" having count(
1
) <
%
s order by pw.created_at, pw.id "
order
=
" having count(
pwi.id
) <
%
s order by pw.created_at, pw.id "
timeout
=
(
datetime
.
utcnow
()
.
replace
(
tzinfo
=
UTC
)
-
TIME_LIMIT
)
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
)
sub
=
_get_next_submission
(
order
,
...
...
@@ -710,7 +710,7 @@ def _get_next_submission(order, workflow, *args):
and pw.submission_uuid<>'cdd6cf7a-2787-43ec-8d31-62fdb14d4e09'
and pw.submission_uuid<>'ebc7d4e1-1577-4443-ab58-2caad9a10837'
and (pwi.scorer_id_id is NULL or pwi.assessment<>-1 or pwi.started_at > '2014-03-04 20:09:04')
group by pw.submission_uuid having count(
1
) < 3
group by pw.submission_uuid having count(
pwi.id
) < 3
order by pw.created_at, pw.id
limit 1;
...
...
apps/openassessment/assessment/test/test_peer.py
View file @
b4fd1500
...
...
@@ -114,7 +114,7 @@ class TestPeerApi(TestCase):
def
test_create_assessment
(
self
):
self
.
_create_student_and_submission
(
"Tim"
,
"Tim's answer"
)
bob_sub
,
bob
=
self
.
_create_student_and_submission
(
"Bob"
,
"Bob's answer"
)
sub
=
peer_api
.
get_submission_to_assess
(
bob
,
3
)
sub
=
peer_api
.
get_submission_to_assess
(
bob
,
1
)
assessment
=
peer_api
.
create_assessment
(
sub
[
"uuid"
],
bob
[
"student_id"
],
...
...
apps/openassessment/xblock/static/xml/poverty_rubric_example.xml
View file @
b4fd1500
...
...
@@ -107,8 +107,8 @@
<assessment
name=
"peer-assessment"
start=
"2014-12-20T19:00-7:00"
due=
"2014-12-21T22:22-7:00"
must_grade=
"
5
"
must_be_graded_by=
"
3
"
/>
must_grade=
"
1
"
must_be_graded_by=
"
1
"
/>
<assessment
name=
"self-assessment"
/>
</assessments>
</openassessment>
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