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
9a70179a
Unverified
Commit
9a70179a
authored
6 years ago
by
Rabia Iftikhar
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #18606 from edx/ri/EDUCATOR-3030-add-temperory-logs
EDUCATOR-3030 add temporary logs
parents
2d24482c
0438c1b5
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
common/lib/xmodule/xmodule/capa_base.py
+16
-1
16 additions, 1 deletion
common/lib/xmodule/xmodule/capa_base.py
with
16 additions
and
1 deletion
common/lib/xmodule/xmodule/capa_base.py
+
16
−
1
View file @
9a70179a
...
...
@@ -952,6 +952,14 @@ class CapaMixin(ScorableXBlockMixin, CapaFields):
self
.
lcp
.
update_score
(
score_msg
,
queuekey
)
self
.
set_state_from_lcp
()
self
.
set_score
(
self
.
score_from_lcp
())
if
unicode
(
self
.
course_id
)
==
'
course-v1:MITx+6.00.1x+2T2017_2
'
:
log
.
info
(
"
EDUCATOR-3030: publishing grade for course_id %s | block_id %s | user_id %s
"
"
while updating score
"
,
self
.
course_id
,
self
.
location
,
self
.
runtime
.
user_id
)
self
.
publish_grade
()
return
dict
()
# No AJAX return is needed
...
...
@@ -1262,7 +1270,14 @@ class CapaMixin(ScorableXBlockMixin, CapaFields):
msg
+=
u
'
\n
Traceback:
\n
{}
'
.
format
(
traceback
.
format_exc
())
return
{
'
success
'
:
msg
}
raise
if
unicode
(
self
.
course_id
)
==
'
course-v1:MITx+6.00.1x+2T2017_2
'
:
log
.
info
(
"
EDUCATOR-3030: publishing grade for course_id %s | block_id %s | user_id %s
"
"
while submitting problem
"
,
self
.
course_id
,
self
.
location
,
self
.
runtime
.
user_id
)
published_grade
=
self
.
publish_grade
()
# success = correct if ALL questions in this problem are correct
...
...
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