Upload other files to S3 when get_other_files is True 🟩

This commit is contained in:
Daniel Roth 2026-06-02 09:37:17 +00:00 committed by Jun-te Kim
parent 098f60ecfd
commit c86dbeb4a1

View file

@ -102,14 +102,16 @@ class PashubService:
)
self._save_site_notes(upload_records)
if downloaded.other:
self._upload_to_s3_and_update_db(
downloaded.other, uprn, hubspot_deal_id, file_source
)
# SharePoint upload disabled: pashub sharepoint_link is inconsistent
# (points to property or project unpredictably)
# if request.sharepoint_link:
# self._upload_to_sharepoint(request.sharepoint_link, downloaded.core)
if request.get_other_files:
pass # TODO: process downloaded.other
for file_path in downloaded.core + downloaded.other:
try:
os.remove(file_path)