From aacd168545186ce7f855932c135d9e103eb8ee27 Mon Sep 17 00:00:00 2001 From: Zachary Hampton <69336300+ZacharyHampton@users.noreply.github.com> Date: Sat, 18 May 2024 17:47:55 -0700 Subject: [PATCH] - alt photos bug fix --- homeharvest/utils.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/homeharvest/utils.py b/homeharvest/utils.py index cb2953d..cbd8993 100644 --- a/homeharvest/utils.py +++ b/homeharvest/utils.py @@ -84,7 +84,7 @@ def process_result(result: Property) -> pd.DataFrame: description = result.description prop_data["primary_photo"] = description.primary_photo - prop_data["alt_photos"] = ", ".join(description.alt_photos) + prop_data["alt_photos"] = ", ".join(description.alt_photos) if description.alt_photos else None prop_data["style"] = description.style if type(description.style) == str else description.style.value prop_data["beds"] = description.beds prop_data["full_baths"] = description.baths_full diff --git a/pyproject.toml b/pyproject.toml index 6c23a3e..500dfe1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "homeharvest" -version = "0.3.26" +version = "0.3.27" description = "Real estate scraping library" authors = ["Zachary Hampton ", "Cullen Watson "] homepage = "https://github.com/Bunsly/HomeHarvest"