aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2021-06-08 19:12:59 +0000
committerzsloan2021-06-08 19:12:59 +0000
commit2c62821afc7d21cd345d6ba43b6a67dce6f526e0 (patch)
tree99fd6e368774743029d7cd73793262ad15bb91cc
parent3d3b153f42da30caab130a84b3eb7c3b8c3dd05b (diff)
downloadgenenetwork2-2c62821afc7d21cd345d6ba43b6a67dce6f526e0.tar.gz
Changed StringIO to BytesIO since it apparently needs to be useed with ZipFile writestr in Python 3
-rw-r--r--wqflask/wqflask/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py
index ebe5303a..0714bd20 100644
--- a/wqflask/wqflask/views.py
+++ b/wqflask/wqflask/views.py
@@ -623,7 +623,7 @@ def export_traits_csv():
now = datetime.datetime.now()
time_str = now.strftime('%H:%M_%d%B%Y')
filename = "export_{}".format(time_str)
- memory_file = io.StringIO()
+ memory_file = io.BytesIO()
with ZipFile(memory_file, mode='w', compression=ZIP_DEFLATED) as zf:
for the_file in file_list:
zf.writestr(the_file[0], the_file[1])