geethareddy commited on
Commit
9711148
·
verified ·
1 Parent(s): fcce866

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -90,7 +90,7 @@ def save_report_as_pdf(role, supervisor_name, project_id, checklist, suggestions
90
  shutil.copy(file_path, temp_pdf_path)
91
  return temp_pdf_path,filename
92
 
93
- def upload_pdf_to_salesforce_and_update_link(supervisor_name, project_id, pdf_path, pdf_name, checklist, suggestions,Reflection_Log):
94
  try:
95
  sf = Salesforce(
96
  username=os.getenv('SF_USERNAME'),
@@ -147,7 +147,6 @@ def upload_pdf_to_salesforce_and_update_link(supervisor_name, project_id, pdf_pa
147
  'Supervisor_ID__c': supervisor_id,
148
  'Daily_Checklist__c': checklist,
149
  'Suggested_Tips__c': suggestions,
150
- 'Reflection_Log__c': Reflection_Log,
151
  'Download_Link__c': download_url
152
  })
153
 
@@ -303,6 +302,4 @@ def create_interface():
303
 
304
  if __name__ == "__main__":
305
  app = create_interface()
306
- app.launch()
307
-
308
-
 
90
  shutil.copy(file_path, temp_pdf_path)
91
  return temp_pdf_path,filename
92
 
93
+ def upload_pdf_to_salesforce_and_update_link(supervisor_name, project_id, pdf_path, pdf_name, checklist, suggestions):
94
  try:
95
  sf = Salesforce(
96
  username=os.getenv('SF_USERNAME'),
 
147
  'Supervisor_ID__c': supervisor_id,
148
  'Daily_Checklist__c': checklist,
149
  'Suggested_Tips__c': suggestions,
 
150
  'Download_Link__c': download_url
151
  })
152
 
 
302
 
303
  if __name__ == "__main__":
304
  app = create_interface()
305
+ app.launch()