pyfunda 2.6.1__tar.gz → 2.6.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyfunda
3
- Version: 2.6.1
3
+ Version: 2.6.2
4
4
  Summary: Python API for Funda.nl real estate listings
5
5
  Project-URL: Homepage, https://github.com/0xMH/pyfunda
6
6
  Project-URL: Repository, https://github.com/0xMH/pyfunda
@@ -823,12 +823,20 @@ class Funda:
823
823
  agents = source.get("agent", [])
824
824
  agent = agents[0] if agents else {}
825
825
 
826
+ street = address.get("street_name") or ""
827
+ number = address.get("house_number") or ""
828
+ suffix = address.get("house_number_suffix") or ""
829
+ title = f"{street} {number}".strip()
830
+ if suffix:
831
+ title = f"{title}-{suffix}" if number else f"{title} {suffix}".strip()
832
+
826
833
  listing_data = {
827
834
  "global_id": int(hit.get("_id", 0)),
828
- "title": f"{address.get('street_name', '')} {address.get('house_number', '')}".strip(),
835
+ "title": title,
829
836
  "street_name": address.get("street_name"),
830
837
  "house_number": address.get("house_number"),
831
838
  "house_number_suffix": address.get("house_number_suffix"),
839
+ "house_number_ext": address.get("house_number_suffix"),
832
840
  "city": address.get("city"),
833
841
  "postcode": address.get("postal_code"),
834
842
  "province": address.get("province"),
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "pyfunda"
7
- version = "2.6.1"
7
+ version = "2.6.2"
8
8
  description = "Python API for Funda.nl real estate listings"
9
9
  readme = "README.md"
10
10
  license = "AGPL-3.0-or-later"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes