cjber commited on
Commit
e9d4b1a
·
1 Parent(s): 962af01

fix: check failed and existing files using str instead of int

Browse files
Files changed (1) hide show
  1. planning_ai/preprocessing/gcpt3.py +2 -2
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