Commit 3a28b924 authored by Pierre Dittgen's avatar Pierre Dittgen
Browse files

Extract data size via another way

parent fd1c3684
......@@ -44,10 +44,10 @@ def compute_badge_metrics(report, config) -> Optional[dict]:
return None
table_report = report["tasks"][0]
resource_stats = table_report["resource"]["stats"]
# Compute number of cells
cell_total_number = resource_stats["fields"] * resource_stats["rows"]
resource_data = table_report["resource"]["data"]
cell_total_number = len(resource_data[0]) * len(resource_data)
# No errors
if (
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment