Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,7 +21,7 @@ class PDOKLocationSearchInput(BaseModel):
|
|
| 21 |
if v is not None and (len(v) != 7 or not v[0:4].isdigit() or v[4] != " " or not v[5:7].isalpha()):
|
| 22 |
raise ValueError("Invalid postal code format. It must be '1234 AA'.")
|
| 23 |
return v
|
| 24 |
-
|
| 25 |
def construct_query(self) -> str:
|
| 26 |
"""Constructs the query string based on provided inputs."""
|
| 27 |
if self.postal_code and self.house_number:
|
|
|
|
| 21 |
if v is not None and (len(v) != 7 or not v[0:4].isdigit() or v[4] != " " or not v[5:7].isalpha()):
|
| 22 |
raise ValueError("Invalid postal code format. It must be '1234 AA'.")
|
| 23 |
return v
|
| 24 |
+
|
| 25 |
def construct_query(self) -> str:
|
| 26 |
"""Constructs the query string based on provided inputs."""
|
| 27 |
if self.postal_code and self.house_number:
|