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
25e02643
Commit
25e02643
authored
May 13, 2014
by
Diana Huang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More missing ORA fixes.
parent
b3927830
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
common/lib/xmodule/xmodule/open_ended_grading_classes/controller_query_service.py
+5
-5
No files found.
common/lib/xmodule/xmodule/open_ended_grading_classes/controller_query_service.py
View file @
25e02643
...
@@ -44,7 +44,7 @@ class ControllerQueryService(GradingService):
...
@@ -44,7 +44,7 @@ class ControllerQueryService(GradingService):
log
.
debug
(
self
.
combined_notifications_url
)
log
.
debug
(
self
.
combined_notifications_url
)
data
=
self
.
get
(
self
.
combined_notifications_url
,
params
)
data
=
self
.
get
(
self
.
combined_notifications_url
,
params
)
tags
=
[
u'course_id:{}'
.
format
(
course_id
),
u'user_is_staff:{}'
.
format
(
user_is_staff
)]
tags
=
[
u'course_id:{}'
.
format
(
course_id
.
to_deprecated_string
()
),
u'user_is_staff:{}'
.
format
(
user_is_staff
)]
tags
.
extend
(
tags
.
extend
(
u'{}:{}'
.
format
(
key
,
value
)
u'{}:{}'
.
format
(
key
,
value
)
for
key
,
value
in
data
.
items
()
for
key
,
value
in
data
.
items
()
...
@@ -56,12 +56,12 @@ class ControllerQueryService(GradingService):
...
@@ -56,12 +56,12 @@ class ControllerQueryService(GradingService):
def
get_grading_status_list
(
self
,
course_id
,
student_id
):
def
get_grading_status_list
(
self
,
course_id
,
student_id
):
params
=
{
params
=
{
'student_id'
:
student_id
,
'student_id'
:
student_id
,
'course_id'
:
course_id
,
'course_id'
:
course_id
.
to_deprecated_string
()
,
}
}
data
=
self
.
get
(
self
.
grading_status_list_url
,
params
)
data
=
self
.
get
(
self
.
grading_status_list_url
,
params
)
tags
=
[
u'course_id:{}'
.
format
(
course_id
)]
tags
=
[
u'course_id:{}'
.
format
(
course_id
.
to_deprecated_string
()
)]
self
.
_record_result
(
'get_grading_status_list'
,
data
,
tags
)
self
.
_record_result
(
'get_grading_status_list'
,
data
,
tags
)
dog_stats_api
.
histogram
(
dog_stats_api
.
histogram
(
self
.
_metric_name
(
'get_grading_status_list.length'
),
self
.
_metric_name
(
'get_grading_status_list.length'
),
...
@@ -77,7 +77,7 @@ class ControllerQueryService(GradingService):
...
@@ -77,7 +77,7 @@ class ControllerQueryService(GradingService):
data
=
self
.
get
(
self
.
flagged_problem_list_url
,
params
)
data
=
self
.
get
(
self
.
flagged_problem_list_url
,
params
)
tags
=
[
u'course_id:{}'
.
format
(
course_id
)]
tags
=
[
u'course_id:{}'
.
format
(
course_id
.
to_deprecated_string
()
)]
self
.
_record_result
(
'get_flagged_problem_list'
,
data
,
tags
)
self
.
_record_result
(
'get_flagged_problem_list'
,
data
,
tags
)
dog_stats_api
.
histogram
(
dog_stats_api
.
histogram
(
self
.
_metric_name
(
'get_flagged_problem_list.length'
),
self
.
_metric_name
(
'get_flagged_problem_list.length'
),
...
@@ -95,7 +95,7 @@ class ControllerQueryService(GradingService):
...
@@ -95,7 +95,7 @@ class ControllerQueryService(GradingService):
data
=
self
.
post
(
self
.
take_action_on_flags_url
,
params
)
data
=
self
.
post
(
self
.
take_action_on_flags_url
,
params
)
tags
=
[
u'course_id:{}'
.
format
(
course_id
),
u'action_type:{}'
.
format
(
action_type
)]
tags
=
[
u'course_id:{}'
.
format
(
course_id
.
to_deprecated_string
()
),
u'action_type:{}'
.
format
(
action_type
)]
self
.
_record_result
(
'take_action_on_flags'
,
data
,
tags
)
self
.
_record_result
(
'take_action_on_flags'
,
data
,
tags
)
return
data
return
data
...
...
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