From 5cdb4ccce02042b31cbd484cb806f1a8bb2ebea2 Mon Sep 17 00:00:00 2001 From: Ivo Branco Date: Fri, 9 Feb 2024 16:54:10 +0000 Subject: [PATCH] feat: add username and date export certificates On export certificates csv command add username and certificate creation date. resolves fccn/nau-technical#1 --- .../management/commands/export_course_certificates.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nau_openedx_extensions/management/commands/export_course_certificates.py b/nau_openedx_extensions/management/commands/export_course_certificates.py index 654d776..f332c2c 100644 --- a/nau_openedx_extensions/management/commands/export_course_certificates.py +++ b/nau_openedx_extensions/management/commands/export_course_certificates.py @@ -77,7 +77,9 @@ def handle(self, *args, **options): [ "course_id", "student email", + "student username", "student name", + "certificate created date", "certificate verify_uuid", "certificate_web_link_url", "certificate_download_pdf_link", @@ -97,7 +99,9 @@ def handle(self, *args, **options): [ course_id, certificate.user.email, + certificate.user.username, certificate.name, + certificate.created_date, certificate.verify_uuid, certificate_web_link_url, certificate_download_pdf_link,