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
e8c4e31b
Commit
e8c4e31b
authored
Dec 24, 2014
by
muhammad-ammar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix2
parent
b9460c5e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
openassessment/assessment/api/peer.py
+11
-2
openassessment/xblock/peer_assessment_mixin.py
+0
-1
No files found.
openassessment/assessment/api/peer.py
View file @
e8c4e31b
...
...
@@ -961,11 +961,20 @@ def cancel_submission_peer_workflow(submission_uuid, comments, cancelled_by_id):
comments (str): The reason for cancellation.
cancelled_by_id (str): The ID of the user who cancelled the peer workflow.
"""
from
nose.tools
import
set_trace
;
set_trace
()
try
:
workflow
=
PeerWorkflow
.
objects
.
get
(
submission_uuid
=
submission_uuid
)
assessment
=
workflow
.
graded_by
.
filter
(
assessment__submission_uuid
=
submission_uuid
,
assessment__score_type
=
PEER_TYPE
)
.
order_by
(
'-assessment'
)
if
assessment
:
sub_api
.
set_score
(
submission_uuid
,
0
,
assessment
.
points_possible
)
return
PeerWorkflowCancellation
.
create
(
workflow
=
workflow
,
comments
=
comments
,
cancelled_by_id
=
cancelled_by_id
)
except
(
PeerWorkflow
.
DoesNotExist
,
...
...
openassessment/xblock/peer_assessment_mixin.py
View file @
e8c4e31b
...
...
@@ -267,7 +267,6 @@ class PeerAssessmentMixin(object):
"""
peer_submission
=
False
try
:
from
nose.tools
import
set_trace
;
set_trace
()
peer_submission
=
peer_api
.
get_submission_to_assess
(
self
.
submission_uuid
,
assessment
[
"must_be_graded_by"
]
...
...
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