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
d4a213aa
Commit
d4a213aa
authored
Nov 19, 2012
by
Victor Shnayder
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1061 from MITx/feature/jarv/cert-status-fix
Missing course_id filter for certificate summary
parents
e304d71c
fae4cead
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
lms/djangoapps/certificates/management/commands/gen_cert_report.py
+3
-2
No files found.
lms/djangoapps/certificates/management/commands/gen_cert_report.py
View file @
d4a213aa
...
...
@@ -70,8 +70,9 @@ class Command(BaseCommand):
cert_data
[
course_id
]
=
{
'enrolled'
:
enrolled_students
.
count
()}
cert_data
[
course_id
]
.
update
({
'unavailable'
:
unavailable_count
})
tallies
=
GeneratedCertificate
.
objects
.
values
(
'status'
)
.
annotate
(
dcount
=
Count
(
'status'
))
tallies
=
GeneratedCertificate
.
objects
.
filter
(
course_id__exact
=
course_id
)
.
values
(
'status'
)
.
annotate
(
dcount
=
Count
(
'status'
))
cert_data
[
course_id
]
.
update
(
{
status
[
'status'
]:
status
[
'dcount'
]
for
status
in
tallies
})
...
...
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