Skip to content

Commit

Permalink
Recheck for only numeric data in the rollup table (#4845)
Browse files Browse the repository at this point in the history
* ensure only numeric axis return data - remove lines 1270 and 1271 if the all zeros returns should not be visible

* exclude log statement

---------

Co-authored-by: Katherine Fleming <[email protected]>
  • Loading branch information
crutan and kflemin authored Oct 17, 2024
1 parent 72a2fa3 commit 12aaa81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion seed/views/v3/organizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -1207,7 +1207,7 @@ def get_axis_stats(self, organization, cycle, axis, axis_var, views, ali):
data = [
d[axis]
for d in [apply_display_unit_preferences(organization, d) for d in filtered_properties.values(axis)]
if axis in d and d[axis] is not None
if axis in d and d[axis] is not None and isinstance(d[axis], (int, float))
]

if len(data) > 0:
Expand Down

0 comments on commit 12aaa81

Please sign in to comment.