Skip to content

Commit

Permalink
Merge pull request #19 from datakind/ui_results_drilldown
Browse files Browse the repository at this point in the history
Merging as I have to ship to Medic
  • Loading branch information
dividor authored Jun 26, 2022
2 parents 9d42c60 + 7f42aed commit f943413
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker/appsmith/DOT App V2.json

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions dot/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -780,10 +780,14 @@ def set_summary_stats(

# Get failed row count
if test_status == "fail":
c = pd.read_sql(
f"SELECT count(*) FROM {schema_test}.{failed_tests_view}", conn_test
df = pd.read_sql(
f"SELECT * FROM {schema_test}.{failed_tests_view}", conn_test
)
c = float(c.iloc[0, 0])
# Some test views have one row, where they provide a list of failing uuids
if 'uuid_list' in df.columns.values and df.shape[0] == 1:
c = len(list(df.iloc[0, 0]))
else:
c = df.shape[0]
else:
c = 0
failed_count.append(c)
Expand Down

0 comments on commit f943413

Please sign in to comment.