Spaces:
Build error
Build error
fix: check failed and existing files using str instead of int
Browse files
planning_ai/preprocessing/gcpt3.py
CHANGED
@@ -81,8 +81,8 @@ def download_attachments():
|
|
81 |
row["attachments_url"].startswith(
|
82 |
("https://egov.scambs.gov.uk", "http://egov.scambs.gov.uk")
|
83 |
)
|
84 |
-
or row["attachments_id"] in existing_files
|
85 |
-
or row["attachments_id"] in failed_files
|
86 |
):
|
87 |
failed_files.add(row["attachments_id"])
|
88 |
continue
|
|
|
81 |
row["attachments_url"].startswith(
|
82 |
("https://egov.scambs.gov.uk", "http://egov.scambs.gov.uk")
|
83 |
)
|
84 |
+
or str(row["attachments_id"]) in existing_files
|
85 |
+
or str(row["attachments_id"]) in failed_files
|
86 |
):
|
87 |
failed_files.add(row["attachments_id"])
|
88 |
continue
|