Skip to content

Commit

Permalink
merge release/0.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
CI committed Mar 26, 2019
2 parents 3485abb + af9bf90 commit 23932c6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Release 0.5.3
-------------
* Fix issue with docx table format data rendering

Release 0.5.2
-------------
* Add docx table renderer option
Expand Down
2 changes: 1 addition & 1 deletion src/unicef_rest_export/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
NAME = 'unicef_rest_export'
VERSION = __version__ = "0.5.2"
VERSION = __version__ = "0.5.3"
__author__ = 'UNICEF'
4 changes: 2 additions & 2 deletions src/unicef_rest_export/renderers.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,8 @@ def export_set(self, formatted, headers):
# set data
for record in formatted:
row = table.add_row().cells
for i, data in enumerate(record):
row[i].text = str(data)
for i, key in enumerate(record):
row[i].text = str(record[key])

doc.save(stream)
return stream.getvalue()
Expand Down

0 comments on commit 23932c6

Please sign in to comment.