Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -147,7 +147,7 @@ def send_to_salesforce(violations, score):
|
|
| 147 |
|
| 148 |
try:
|
| 149 |
# Update the Safety_Video_Report__c record in Salesforce
|
| 150 |
-
sf.
|
| 151 |
print("✅ Successfully updated Salesforce with the results!")
|
| 152 |
except Exception as e:
|
| 153 |
print(f"❌ Error updating Salesforce: {e}")
|
|
|
|
| 147 |
|
| 148 |
try:
|
| 149 |
# Update the Safety_Video_Report__c record in Salesforce
|
| 150 |
+
sf.Safety_Video_Reports__c.update(report_id, data)
|
| 151 |
print("✅ Successfully updated Salesforce with the results!")
|
| 152 |
except Exception as e:
|
| 153 |
print(f"❌ Error updating Salesforce: {e}")
|