Skip to content

Commit

Permalink
Merge pull request #82 from eduNEXT/and/update_api_client_structure
Browse files Browse the repository at this point in the history
fix: update certificates api_client data structure
  • Loading branch information
andrey-canon committed Aug 10, 2023
2 parents 7e9629b + 384cb4b commit 2d340c2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions eox_nelp/api_clients/certificates.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,11 @@ def create_external_certificate(self, certificate_data):
},
"group_code": certificate_data["group_code"],
"certificate_type": "completion", # What types do we have ?
"metadata": {
"degree": certificate_data["grade"],
"FAIL": not certificate_data["is_passing"],
}
"score": {
"value": certificate_data["grade"],
"type": "percentage"
},
"metadata": getattr(settings, "EXTERNAL_CERTIFICATES_METADATA", {}),
}

return self.make_post(path, payload)

0 comments on commit 2d340c2

Please sign in to comment.