Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

Commit

Permalink
complete report template
Browse files Browse the repository at this point in the history
  • Loading branch information
risufaj committed Jan 16, 2019
1 parent 101bbfd commit 50b2845
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion request/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

from fpdf import FPDF, HTMLMixin
from docx import Document
from docx.shared import Pt
from docx.shared import Pt,Cm

from common.views import (
CsrfExemptSessionAuthentication,
Expand Down Expand Up @@ -576,6 +576,7 @@ def add_table(document, header, data):

# Change font size for all cells
for row in table.rows:
row.height = Cm(0.7)
for cell in row.cells:
paragraphs = cell.paragraphs
for paragraph in paragraphs:
Expand Down

0 comments on commit 50b2845

Please sign in to comment.