GuglielmoTor commited on
Commit
5caa756
·
verified ·
1 Parent(s): ce630e0

Update services/report_data_handler.py

Browse files
Files changed (1) hide show
  1. services/report_data_handler.py +2 -2
services/report_data_handler.py CHANGED
@@ -74,8 +74,8 @@ def save_report_results(
74
  response = bulk_upload_to_bubble([payload], BUBBLE_REPORT_TABLE_NAME)
75
 
76
  # Assuming bulk_upload_to_bubble returns a list of IDs on success and None or False on failure
77
- if response and isinstance(response, list) and len(response) > 0:
78
- record_id = response[0]
79
  logger.info(f"Successfully saved agentic analysis to Bubble. Record ID: {record_id}")
80
  return record_id
81
  else:
 
74
  response = bulk_upload_to_bubble([payload], BUBBLE_REPORT_TABLE_NAME)
75
 
76
  # Assuming bulk_upload_to_bubble returns a list of IDs on success and None or False on failure
77
+ if response:
78
+ record_id = response[id]
79
  logger.info(f"Successfully saved agentic analysis to Bubble. Record ID: {record_id}")
80
  return record_id
81
  else: