AjaykumarPilla commited on
Commit
650f224
·
verified ·
1 Parent(s): 5416833

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -125,6 +125,9 @@ def save_to_salesforce(input_data, prediction):
125
  'Weather_Condition_Forecast__c': prediction['weather_condition']
126
  }
127
 
 
 
 
128
  # Insert record into Salesforce
129
  result = sf.Delay_Predictor__c.create(record)
130
  print(f"Record saved to Salesforce successfully! Record ID: {result['id']}")
 
125
  'Weather_Condition_Forecast__c': prediction['weather_condition']
126
  }
127
 
128
+ # Debugging output: Print the record before attempting to insert into Salesforce
129
+ print(f"Attempting to insert the following record: {record}")
130
+
131
  # Insert record into Salesforce
132
  result = sf.Delay_Predictor__c.create(record)
133
  print(f"Record saved to Salesforce successfully! Record ID: {result['id']}")