Skip to content

Commit

Permalink
remove encode("utf-8")
Browse files Browse the repository at this point in the history
fix spurious b, as b'Totals by Day', in html report.
  • Loading branch information
ederag committed Sep 3, 2018
1 parent 2382740 commit 95c98a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hamster/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def _finish(self, facts):

for key, val in data.items():
if isinstance(val, str):
data[key] = val.encode("utf-8")
data[key] = val

self.file.write(Template(self.main_template).safe_substitute(data))

Expand Down

0 comments on commit 95c98a7

Please sign in to comment.