mirror of
https://github.com/Bunsly/HomeHarvest.git
synced 2026-03-04 11:34:32 -08:00
[chore] function types
This commit is contained in:
@@ -626,7 +626,7 @@ class RealtorScraper(Scraper):
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
def calculate_days_on_mls(result):
|
||||
def calculate_days_on_mls(result: dict) -> Optional[int]:
|
||||
list_date_str = result.get("list_date")
|
||||
list_date = datetime.strptime(list_date_str.split("T")[0], "%Y-%m-%d") if list_date_str else None
|
||||
last_sold_date_str = result.get("last_sold_date")
|
||||
|
||||
Reference in New Issue
Block a user