Skip to content

Commit

Permalink
fix: fix null errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pjsier committed Nov 12, 2024
1 parent 7840c26 commit 7f5b351
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/email.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ class DetroitDocumentMailer(BaseDocumentMailer):
def handle_region_data(self):
self.context_data = {
**self.context_data,
"current_faircash": f"${(self.target.assessed_value * 2):,.0f}",
"current_faircash": f"${((self.target.assessed_value or 0) * 2):,.0f}",
"contention_faircash2": f"${self.comparables_avg_sale_price:,.0f}",
"economic_obsolescence": self.body.economic_obsolescence,
**self.get_depreciation(
Expand Down Expand Up @@ -351,7 +351,7 @@ class MilwaukeeDocumentMailer(BaseDocumentMailer):
def handle_region_data(self):
self.context_data = {
**self.context_data,
"current_faircash": f"${(self.target.assessed_value * 2):.0f}",
"current_faircash": f"${((self.target.assessed_value or 0) * 2):.0f}",
"contention_faircash2": f"${self.comparables_avg_sale_price:,.0f}",
"comparables_count": len(self.comparables),
**self.primary_details(self.primary, self.primary_distance),
Expand Down

0 comments on commit 7f5b351

Please sign in to comment.