Skip to content

Commit

Permalink
feat: set mandatory fields
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-canon committed Aug 9, 2023
1 parent bda691c commit ad2fa82
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eox_nelp/api_clients/certificates.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,16 @@ def create_external_certificate(self, certificate_data):
"expiration": None,
},
"individual": {
"name_en": user.get("english_name", ""),
"name_ar": user.get("arabic_name", ""),
"name_en": user["english_name"],
"name_ar": user["arabic_name"],
"id": user["national_id"],
"id_type": "saudi",
},
"group_code": certificate_data["group_code"],
"certificate_type": "completion", # What types do we have ?
"metadata": {
"degree": certificate_data["grade"],
"FAIL": certificate_data["is_passing"],
"FAIL": not certificate_data["is_passing"],
}
}

Expand Down

0 comments on commit ad2fa82

Please sign in to comment.