Skip to content

Commit feba348

Browse files
carlkesselmanclaude
andcommitted
Fix truncated_values_count attribute error in clone_catalog
CloneCatalogResult has truncated_values (a list), not truncated_values_count. Access the length of the list instead. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 3b71963 commit feba348

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/deriva_ml_mcp/tools/catalog.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,8 +600,8 @@ async def clone_catalog(
600600
response["orphan_rows_nullified"] = result.report.summary.orphan_rows_nullified
601601
response["fkeys_pruned"] = result.report.summary.fkeys_pruned
602602
response["rows_skipped"] = result.report.summary.rows_skipped if hasattr(result.report.summary, 'rows_skipped') else 0
603-
if result.truncated_values_count:
604-
response["truncated_values_count"] = result.truncated_values_count
603+
if result.truncated_values:
604+
response["truncated_values_count"] = len(result.truncated_values)
605605
# Include detailed report
606606
response["report"] = {
607607
"summary": {

0 commit comments

Comments
 (0)