fix postal search to search just by zip

This commit is contained in:
Cullen Watson
2023-12-02 00:39:28 -06:00
parent ad13b55ea6
commit e17b976923
3 changed files with 8 additions and 3 deletions

View File

@@ -573,6 +573,11 @@ class RealtorScraper(Scraper):
"radius": "{}mi".format(self.radius),
}
elif location_type == "postal_code":
search_variables |= {
"postal_code": location_info.get("postal_code"),
}
else: #: general search, location
search_variables |= {
"city": location_info.get("city"),