Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
95d39573
Commit
95d39573
authored
12 years ago
by
Diana Huang
Browse files
Options
Downloads
Plain Diff
Merge pull request #1438 from MITx/feature/vik/peer-grading-xmodule
Patch peer grading tab to work
parents
92f2149d
0133c7c6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lms/djangoapps/open_ended_grading/open_ended_notifications.py
+5
-1
5 additions, 1 deletion
...djangoapps/open_ended_grading/open_ended_notifications.py
with
5 additions
and
1 deletion
lms/djangoapps/open_ended_grading/open_ended_notifications.py
+
5
−
1
View file @
95d39573
from
django.conf
import
settings
from
staff_grading_service
import
StaffGradingService
from
open_ended_grading.controller_query_service
import
ControllerQueryService
from
xmodule
import
peer_grading_service
import
json
from
student.models
import
unique_id_for_user
import
open_ended_util
...
...
@@ -10,6 +11,8 @@ from courseware.access import has_access
from
util.cache
import
cache
import
datetime
from
xmodule
import
peer_grading_service
from
xmodule.x_module
import
ModuleSystem
from
mitxmako.shortcuts
import
render_to_string
log
=
logging
.
getLogger
(
__name__
)
...
...
@@ -55,7 +58,8 @@ def staff_grading_notifications(course, user):
return
notification_dict
def
peer_grading_notifications
(
course
,
user
):
peer_gs
=
PeerGradingService
(
settings
.
PEER_GRADING_INTERFACE
)
system
=
ModuleSystem
(
None
,
None
,
None
,
render_to_string
,
None
)
peer_gs
=
peer_grading_service
.
PeerGradingService
(
settings
.
PEER_GRADING_INTERFACE
,
system
)
pending_grading
=
False
img_path
=
""
course_id
=
course
.
id
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment