Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/printResult_formPdf' into printR…
Browse files Browse the repository at this point in the history
…esult_formPdf
  • Loading branch information
urchinpro committed Oct 16, 2023
2 parents 57dbbc5 + cc37675 commit 546629f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion results/laboratory_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,8 @@ def lab_form_1(fwb, interactive_text_field, pw, direction, styleSheet, directory
Paragraph(
"* Референсные значения приводятся с учетом возраста, пола, фазы менструального цикла, срока беременности. "
"Результаты исследований не являются диагнозом, необходима консультация специалиста.",
styleLeftFont7),
styleLeftFont7,
),
Paragraph("", styleLeftFont7),
]

Expand Down
1 change: 1 addition & 0 deletions results/prepare_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ def format_time_if_is_not_none_to_str(data_t):
return ""
return data_t.strftime("%d.%m.%Y %H:%M")


def gen_hospital_stamp(direction):
pdfmetrics.registerFont(TTFont('PTAstraSerifBold', os.path.join(FONTS_FOLDER, 'PTAstraSerif-Bold.ttf')))
pdfmetrics.registerFont(TTFont('PTAstraSerifReg', os.path.join(FONTS_FOLDER, 'PTAstraSerif-Regular.ttf')))
Expand Down

0 comments on commit 546629f

Please sign in to comment.