Skip to content

Commit

Permalink
Fixed adding data from URL
Browse files Browse the repository at this point in the history
  • Loading branch information
zotya committed Jan 14, 2014
1 parent edd166c commit 0a0f94e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/HISTORY.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ Changelog

8.0-dev - (unreleased)
----------------------
* Bugfix: Fixed adding data from URL
[szabozo0]

7.9 - (2013-11-20)
------------------
Expand Down
3 changes: 2 additions & 1 deletion eea/app/visualization/converter/csvutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ def __init__(self, f, dialect=csv.excel, encoding="utf-8", **kwds):
def writerow(self, row):
""" Write row
"""
self.writer.writerow([s.encode("utf-8") for s in row])
self.writer.writerow([s.encode("utf-8") \
if isinstance(s, (str, unicode)) else str(s) for s in row])
# Fetch UTF-8 output from the queue ...
data = self.queue.getvalue()
data = data.decode("utf-8")
Expand Down

0 comments on commit 0a0f94e

Please sign in to comment.