Skip to content

Commit

Permalink
Fix all the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hellais committed Jan 8, 2025
1 parent ddeb1dc commit a082cc3
Show file tree
Hide file tree
Showing 3 changed files with 195 additions and 121 deletions.
2 changes: 2 additions & 0 deletions ooniapi/common/src/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ def commasplit(p: str) -> List[str]:
def convert_to_csv(r) -> str:
"""Convert aggregation result dict/list to CSV"""
csvf = StringIO()
if len(r) == 0:
return ""
if isinstance(r, dict):
# 0-dimensional data
fieldnames = sorted(r.keys())
Expand Down
Loading

0 comments on commit a082cc3

Please sign in to comment.