mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
Upload other files to S3 when get_other_files is True 🟩
This commit is contained in:
parent
098f60ecfd
commit
c86dbeb4a1
1 changed files with 5 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue