aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wqflask/wqflask/api/router.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/wqflask/wqflask/api/router.py b/wqflask/wqflask/api/router.py
index e371a24e..eb6880f6 100644
--- a/wqflask/wqflask/api/router.py
+++ b/wqflask/wqflask/api/router.py
@@ -517,6 +517,8 @@ def all_sample_data(dataset_name, file_format = "csv"):
line_list.append("x")
results_list.append(line_list)
+ results_list = map(list, zip(*results_list))
+
si = StringIO.StringIO()
csv_writer = csv.writer(si)
csv_writer.writerows(results_list)