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
d0b7f8b1
Commit
d0b7f8b1
authored
Nov 05, 2012
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cert.state->cert.status
parent
022a0aed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
lms/djangoapps/certificates/views.py
+4
-4
No files found.
lms/djangoapps/certificates/views.py
View file @
d0b7f8b1
...
@@ -44,19 +44,19 @@ def update_certificate(request):
...
@@ -44,19 +44,19 @@ def update_certificate(request):
if
'error'
in
xqueue_body
:
if
'error'
in
xqueue_body
:
cert
.
status
=
status
.
error
cert
.
status
=
status
.
error
else
:
else
:
if
cert
.
stat
e
in
[
status
.
generating
,
status
.
regenerating
]:
if
cert
.
stat
us
in
[
status
.
generating
,
status
.
regenerating
]:
cert
.
download_uuid
=
xqueue_body
[
'download_uuid'
]
cert
.
download_uuid
=
xqueue_body
[
'download_uuid'
]
cert
.
verify_uuid
=
xqueue_body
[
'verify_uuid'
]
cert
.
verify_uuid
=
xqueue_body
[
'verify_uuid'
]
cert
.
download_url
=
xqueue_body
[
'url'
]
cert
.
download_url
=
xqueue_body
[
'url'
]
cert
.
status
=
status
.
downloadable
cert
.
status
=
status
.
downloadable
elif
cert
.
stat
e
in
[
status
.
deleting
]:
elif
cert
.
stat
us
in
[
status
.
deleting
]:
cert
.
status
=
status
.
deleted
cert
.
status
=
status
.
deleted
else
:
else
:
logger
.
critical
(
'Invalid state for cert update: {0}'
.
format
(
logger
.
critical
(
'Invalid state for cert update: {0}'
.
format
(
cert
.
stat
e
))
cert
.
stat
us
))
return
HttpResponse
(
json
.
dumps
({
return
HttpResponse
(
json
.
dumps
({
'return_code'
:
1
,
'return_code'
:
1
,
'content'
:
'invalid cert stat
e
'
}),
'content'
:
'invalid cert stat
us
'
}),
mimetype
=
'application/json'
)
mimetype
=
'application/json'
)
cert
.
save
()
cert
.
save
()
return
HttpResponse
(
json
.
dumps
({
'return_code'
:
0
}),
return
HttpResponse
(
json
.
dumps
({
'return_code'
:
0
}),
...
...
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