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
Admin message
code.vt.edu will be down for maintenance from 0530-0630 EDT Wednesday, April 9th
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
2fed6181
Commit
2fed6181
authored
11 years ago
by
John Jarvis
Browse files
Options
Downloads
Patches
Plain Diff
fixing some typos
parent
2a31e356
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lms/djangoapps/certificates/queue.py
+4
-4
4 additions, 4 deletions
lms/djangoapps/certificates/queue.py
with
4 additions
and
4 deletions
lms/djangoapps/certificates/queue.py
+
4
−
4
View file @
2fed6181
from
certificates.models
import
GeneratedCertificate
from
certificates.models
import
certificate_status_for_student
from
certificates.models
import
CertificateStatuses
as
status
from
certificates.models
import
CertificateWhitelist
from
certificates.models
import
CertificateWhitelist
,
CertificateModes
from
courseware
import
grades
,
courses
from
django.test.client
import
RequestFactory
...
...
@@ -177,12 +177,12 @@ class XQueueCertInterface(object):
enrollment
=
CourseEnrollment
.
objects
.
get
(
user
=
student
)
org
=
course_id
.
split
(
'
/
'
)[
0
]
course_num
=
course_id
.
split
(
'
/
'
)[
1
]
if
enrolment
.
mode
==
CertificateModes
.
verified
:
template_pdf
=
"
certificate-template-{0}-{1}-verified.pdf
"
.
format
(
if
enrol
l
ment
.
mode
==
CertificateModes
.
verified
:
template_pdf
=
"
certificate-template-{0}-{1}-verified.pdf
"
.
format
(
org
,
course_num
)
else
:
# honor code and audit students
template_pdf
=
"
certificate-template-{0}-{1}.pdf
"
.
format
(
template_pdf
=
"
certificate-template-{0}-{1}.pdf
"
.
format
(
org
,
course_num
)
cert
,
created
=
GeneratedCertificate
.
objects
.
get_or_create
(
...
...
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