Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -227,7 +227,7 @@ def generate_dpr(files):
|
|
227 |
if image_content_document_id:
|
228 |
image_content_document_ids.append(image_content_document_id)
|
229 |
|
230 |
-
# Create Site_Images__c record
|
231 |
site_image_record = sf.Site_Images__c.create({
|
232 |
'Image__c': image_content_document_id,
|
233 |
'Related_Report__c': dpr_record_id # Link image to DPR record
|
|
|
227 |
if image_content_document_id:
|
228 |
image_content_document_ids.append(image_content_document_id)
|
229 |
|
230 |
+
# Create Site_Images__c record and link to DPR
|
231 |
site_image_record = sf.Site_Images__c.create({
|
232 |
'Image__c': image_content_document_id,
|
233 |
'Related_Report__c': dpr_record_id # Link image to DPR record
|