Skip to content

Commit

Permalink
feat: add verify_uuid to response of CertificatesListView
Browse files Browse the repository at this point in the history
  • Loading branch information
eemaanamir committed Nov 4, 2024
1 parent e18b1c8 commit 9a5d44f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lms/djangoapps/certificates/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def _format_certificate_for_user(username, cert):
if cert.status == CertificateStatuses.downloadable
else None
),
"uuid": cert.verify_uuid,
}

return None
Expand Down
1 change: 1 addition & 0 deletions lms/djangoapps/certificates/apis/v0/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ def get(self, request, username):
'is_passing': user_cert.get('is_passing'),
'download_url': user_cert.get('download_url'),
'grade': user_cert.get('grade'),
'uuid': user_cert.get('uuid'),
})
return Response(user_certs)

Expand Down

0 comments on commit 9a5d44f

Please sign in to comment.