GuglielmoTor commited on
Commit
e49a7f5
·
verified ·
1 Parent(s): 1ff33df

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
@@ -57,8 +57,8 @@ def save_report_results(
57
  logger.info(f"Attempting to save agentic analysis to Bubble for org_urn: {org_urn}")
58
  success_ids = bulk_upload_to_bubble([payload], BUBBLE_REPORT_TABLE_NAME)
59
 
60
- if success_ids and success_ids[0]: # bulk_upload_to_bubble returns list of IDs or False
61
- logger.info(f"Successfully saved agentic analysis to Bubble. Record ID: {success_ids[0]}")
62
  return True
63
  else:
64
  logger.error(f"Failed to save agentic analysis to Bubble. {success_ids}")
 
57
  logger.info(f"Attempting to save agentic analysis to Bubble for org_urn: {org_urn}")
58
  success_ids = bulk_upload_to_bubble([payload], BUBBLE_REPORT_TABLE_NAME)
59
 
60
+ if success_ids: # bulk_upload_to_bubble returns list of IDs or False
61
+ logger.info(f"Successfully saved agentic analysis to Bubble. Record ID: {success_ids}")
62
  return True
63
  else:
64
  logger.error(f"Failed to save agentic analysis to Bubble. {success_ids}")