From d6e5cee9940b708f561ed115fbfeff58cea1c0f9 Mon Sep 17 00:00:00 2001 From: Shaanjot Gill Date: Wed, 16 Oct 2024 13:30:47 -0700 Subject: [PATCH] add isCertificateIssued to applicationHeader Signed-off-by: Shaanjot Gill --- strr-api/src/strr_api/models/application.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/strr-api/src/strr_api/models/application.py b/strr-api/src/strr_api/models/application.py index 67e4064b..7d53d3e7 100644 --- a/strr-api/src/strr_api/models/application.py +++ b/strr-api/src/strr_api/models/application.py @@ -279,11 +279,13 @@ def to_dict(application: Application) -> dict: reviewer_display_name = f"{reviewer_display_name} {application.reviewer.lastname}" application_dict["header"]["reviewer"]["displayName"] = reviewer_display_name + application_dict["header"]["isCertificateIssued"] = False if application.registration_id: application_dict["header"]["registrationId"] = application.registration_id application_dict["header"]["registrationStartDate"] = application.registration.start_date.isoformat() application_dict["header"]["registrationEndDate"] = application.registration.expiry_date.isoformat() application_dict["header"]["registrationStatus"] = application.registration.status.value application_dict["header"]["registrationNumber"] = application.registration.registration_number + application_dict["header"]["isCertificateIssued"] = bool(application.registration.certificates) return application_dict