Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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-platform
Commits
c62ce782
Commit
c62ce782
authored
Jan 17, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add in service support for getting the grading status list
parent
43783e4f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletions
+11
-1
lms/djangoapps/open_ended_grading/controller_query_service.py
+11
-1
No files found.
lms/djangoapps/open_ended_grading/controller_query_service.py
View file @
c62ce782
...
...
@@ -20,6 +20,7 @@ class ControllerQueryService(GradingService):
self
.
check_eta_url
=
self
.
url
+
'/get_submission_eta/'
self
.
is_unique_url
=
self
.
url
+
'/is_name_unique/'
self
.
combined_notifications_url
=
self
.
url
+
'/combined_notifications/'
self
.
grading_status_list_url
=
self
.
url
+
'/get_grading_status_list/'
def
check_if_name_is_unique
(
self
,
location
,
problem_id
,
course_id
):
params
=
{
...
...
@@ -37,11 +38,20 @@ class ControllerQueryService(GradingService):
response
=
self
.
get
(
self
.
check_eta_url
,
params
)
return
response
def
check_combined_notifications
(
self
,
course_id
,
student_id
):
def
check_combined_notifications
(
self
,
course_id
,
student_id
,
user_is_staff
,
last_time_viewed
):
params
=
{
'student_id'
:
student_id
,
'course_id'
:
course_id
,
'user_is_staff'
:
user_is_staff
,
'last_time_viewed'
:
last_time_viewed
,
}
response
=
self
.
get
(
self
.
combined_notifications_url
,
params
)
return
response
def
get_grading_status_list
(
self
,
course_id
,
student_id
):
params
=
{
'student_id'
:
student_id
,
'course_id'
:
course_id
,
}
response
=
self
.
get
(
self
.
grading_status_list_url
,
params
)
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