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
e76536b6
Unverified
Commit
e76536b6
authored
6 years ago
by
Awais Jibran
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #19943 from edx/aj/fix-cert-invalid-grade-source
Fix Incorrect data for cert table
parents
d55be49e
81f15267
No related branches found
Branches containing commit
Tags
release-2021-02-03-12.16
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lms/djangoapps/certificates/signals.py
+4
-3
4 additions, 3 deletions
lms/djangoapps/certificates/signals.py
with
4 additions
and
3 deletions
lms/djangoapps/certificates/signals.py
+
4
−
3
View file @
e76536b6
...
...
@@ -84,10 +84,11 @@ def _listen_for_failing_grade(sender, user, course_id, grade, **kwargs): # pyli
cert
=
GeneratedCertificate
.
certificate_for_student
(
user
,
course_id
)
if
cert
is
not
None
:
if
CertificateStatuses
.
is_passing_status
(
cert
.
status
):
cert
.
mark_notpassing
(
grade
)
log
.
info
(
u
'
Certificate marked not passing for {user} : {course} via failing grade
'
.
format
(
cert
.
mark_notpassing
(
grade
.
percent
)
log
.
info
(
u
'
Certificate marked not passing for {user} : {course} via failing grade
: {grade}
'
.
format
(
user
=
user
.
id
,
course
=
course_id
course
=
course_id
,
grade
=
grade
))
...
...
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