Skip to content

Commit

Permalink
fix: Business Licence expiry date format in registration response (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
kris-daxiom authored Oct 7, 2024
1 parent 0781f61 commit 9733e9e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion strr-api/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "strr-api"
version = "0.0.11"
version = "0.0.12"
description = ""
authors = ["thorwolpert <[email protected]>"]
license = "BSD 3-Clause"
Expand Down
6 changes: 5 additions & 1 deletion strr-api/src/strr_api/responses/RegistrationSerializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,11 @@ def populate_host_registration_details(cls, registration_data: dict, registratio
registration_data["unitDetails"] = {
"parcelIdentifier": registration.rental_property.parcel_identifier,
"businessLicense": registration.rental_property.local_business_licence,
"businessLicenseExpiryDate": registration.rental_property.local_business_licence_expiry_date,
"businessLicenseExpiryDate": registration.rental_property.local_business_licence_expiry_date.strftime(
"%Y-%m-%d"
)
if registration.rental_property.local_business_licence_expiry_date
else None,
"propertyType": registration.rental_property.property_type.name,
"ownershipType": registration.rental_property.ownership_type.name,
}
Expand Down

0 comments on commit 9733e9e

Please sign in to comment.