Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Validata
Validata Core
Commits
3a28b924
Commit
3a28b924
authored
Mar 09, 2021
by
Pierre Dittgen
Browse files
Extract data size via another way
parent
fd1c3684
Changes
1
Hide whitespace changes
Inline
Side-by-side
validata_core/__init__.py
View file @
3a28b924
...
...
@@ -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
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment