Spaces:
Running
Running
Update services/report_data_handler.py
Browse files
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
|
78 |
-
record_id = response[
|
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:
|