Skip to content

Commit

Permalink
- optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacharyHampton committed Jun 15, 2024
1 parent beb885c commit ac0cad6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions homeharvest/core/scrapers/realtor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ def process_property(result: dict) -> Property | None:
return

property_id = result["property_id"]
prop_details = self.get_prop_details(property_id)
prop_details = self.get_prop_details(property_id) if self.extra_property_data else {}

realty_property = Property(
mls=mls,
Expand Down Expand Up @@ -647,7 +647,7 @@ def search(self):
total = result["total"]
homes = result["properties"]

with ThreadPoolExecutor(max_workers=10) as executor:
with ThreadPoolExecutor() as executor:
futures = [
executor.submit(
self.general_search,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "homeharvest"
version = "0.3.31"
version = "0.3.32"
description = "Real estate scraping library"
authors = ["Zachary Hampton <[email protected]>", "Cullen Watson <[email protected]>"]
homepage = "https://github.com/Bunsly/HomeHarvest"
Expand Down

0 comments on commit ac0cad6

Please sign in to comment.