Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
18a3cdae
Commit
18a3cdae
authored
3 years ago
by
Albert (AJ) St. Aubin
Browse files
Options
Downloads
Patches
Plain Diff
fix: Correct an issue where cert available date was not sent to Credentials
parent
cd3957b9
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openedx/core/djangoapps/programs/tasks.py
+7
-3
7 additions, 3 deletions
openedx/core/djangoapps/programs/tasks.py
with
7 additions
and
3 deletions
openedx/core/djangoapps/programs/tasks.py
+
7
−
3
View file @
18a3cdae
...
...
@@ -22,6 +22,7 @@ from openedx.core.djangoapps.credentials.models import CredentialsApiConfig
from
openedx.core.djangoapps.credentials.utils
import
get_credentials
,
get_credentials_api_client
from
openedx.core.djangoapps.programs.utils
import
ProgramProgressMeter
from
openedx.core.djangoapps.site_configuration
import
helpers
as
configuration_helpers
from
xmodule.data
import
CertificatesDisplayBehaviors
LOGGER
=
get_task_logger
(
__name__
)
# Maximum number of retries before giving up on awarding credentials.
...
...
@@ -726,10 +727,13 @@ def update_certificate_visible_date_on_course_update(self, course_key, certifica
)
raise
self
.
retry
(
exc
=
exception
,
countdown
=
countdown
,
max_retries
=
MAX_RETRIES
)
# update the course certificate with the new certificate available date if:
# - The course is self paced
# - The certificates_display_behavior is not "end"
# - The course is
not
self paced
# - The certificates_display_behavior is not "end
_with_date
"
course_overview
=
CourseOverview
.
get_from_id
(
course_key
)
if
course_overview
.
self_paced
is
False
and
course_overview
.
certificates_display_behavior
==
'
end
'
:
if
(
course_overview
.
self_paced
is
False
and
course_overview
.
certificates_display_behavior
==
CertificatesDisplayBehaviors
.
END_WITH_DATE
):
update_credentials_course_certificate_configuration_available_date
.
delay
(
str
(
course_key
),
certificate_available_date
...
...
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