Skip to content

Commit

Permalink
fix: link to instructor on http
Browse files Browse the repository at this point in the history
  • Loading branch information
igobranco committed Feb 9, 2024
1 parent 5cdb4cc commit 6b13eb2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ def handle(self, *args, **options):
)

course_key = CourseKey.from_string(course_id)
lms_base = SiteConfiguration.get_value_for_org(
course_key.org, "LMS_BASE", settings.LMS_BASE
lms_root_url = SiteConfiguration.get_value_for_org(
course_key.org, "LMS_ROOT_URL", settings.LMS_ROOT_URL
)

# prepare output
Expand All @@ -89,7 +89,7 @@ def handle(self, *args, **options):
# iterate each certificate and append each certificate as a row
for certificate in course_generated_certificates:
certificate_web_link_url = (
"https://" + lms_base + "/certificates/" + certificate.verify_uuid
f"{lms_root_url}/certificates/{certificate.verify_uuid}"
)
certificate_download_pdf_link = (
certificate_download_pdf_url + certificate.verify_uuid
Expand All @@ -116,7 +116,7 @@ def handle(self, *args, **options):
)

lms_instructor_data_download_url = (
f"https://{lms_base}/courses/{course_id}/instructor#view-data_download"
f"{lms_root_url}/courses/{course_id}/instructor#view-data_download"
)
self.log_msg(
f"You can confirm the existence of the file on: {lms_instructor_data_download_url}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,11 @@ def handle(self, *args, **options):
)
delete_recursive(course_certificate_folder)

lms_base = SiteConfiguration.get_value_for_org(
course_key.org, "LMS_BASE", settings.LMS_BASE
lms_root_url = SiteConfiguration.get_value_for_org(
course_key.org, "LMS_ROOT_URL", settings.LMS_ROOT_URL
)
lms_instructor_data_download_url = (
f"https://{lms_base}/courses/{course_id}/instructor#view-data_download"
f"{lms_root_url}/courses/{course_id}/instructor#view-data_download"
)
self.log_msg(
f"You can confirm the existence of the file on: {lms_instructor_data_download_url}"
Expand Down

0 comments on commit 6b13eb2

Please sign in to comment.