Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -157,7 +157,7 @@ def send_to_salesforce(violations, score):
|
|
| 157 |
|
| 158 |
try:
|
| 159 |
# Insert new record in Salesforce
|
| 160 |
-
result = sf.
|
| 161 |
print(f"✅ Successfully created new report in Salesforce with ID: {result['id']}")
|
| 162 |
except Exception as e:
|
| 163 |
print(f"❌ Error creating/updating record in Salesforce: {e}")
|
|
|
|
| 157 |
|
| 158 |
try:
|
| 159 |
# Insert new record in Salesforce
|
| 160 |
+
result = sf.Safety_Video_Reports__c.create(data)
|
| 161 |
print(f"✅ Successfully created new report in Salesforce with ID: {result['id']}")
|
| 162 |
except Exception as e:
|
| 163 |
print(f"❌ Error creating/updating record in Salesforce: {e}")
|