Skip to content

Commit

Permalink
feat(engines): fix code for new xlsx library
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Louis Fuchs committed May 27, 2022
1 parent e133c83 commit ca4a6a4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions document_merge_service/api/engines.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,7 @@ def merge(self, data, buf):
writer.jinja_env.filters.update(get_jinja_filters())
writer.jinja_env.globals.update(dir=dir, getattr=getattr)

writer.render_book(payloads=[])
writer.render_sheet(data, "sheet", 1)
writer.render_book(payloads=[data])
writer.save(buf)
return buf

Expand Down

0 comments on commit ca4a6a4

Please sign in to comment.