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
d1cb80a0
Commit
d1cb80a0
authored
Jun 27, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #291 from edx/jarv/fix-certificates-race-cond
save the cert record immediately after we set the status
parents
189fc894
f6d7cc55
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
lms/djangoapps/certificates/queue.py
+3
-2
No files found.
lms/djangoapps/certificates/queue.py
View file @
d1cb80a0
...
...
@@ -194,6 +194,7 @@ class XQueueCertInterface(object):
# on the queue
if
self
.
restricted
.
filter
(
user
=
student
)
.
exists
():
cert
.
status
=
status
.
restricted
cert
.
save
()
else
:
contents
=
{
'action'
:
'create'
,
...
...
@@ -202,15 +203,15 @@ class XQueueCertInterface(object):
'name'
:
profile
.
name
,
}
cert
.
status
=
status
.
generating
cert
.
save
()
self
.
_send_to_xqueue
(
contents
,
key
)
cert
.
save
()
else
:
cert_status
=
status
.
notpassing
cert
.
grade
=
grade
[
'percent'
]
cert
.
status
=
cert_status
cert
.
user
=
student
cert
.
course_id
=
course_id
cert
.
name
=
profile
.
name
cert
.
status
=
cert_status
cert
.
save
()
return
cert_status
...
...
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