add user-management
This commit is contained in:
@@ -8,7 +8,7 @@ from weasyprint import HTML
|
||||
locale.setlocale(locale.LC_TIME, 'pt_BR')
|
||||
today = date.today()
|
||||
|
||||
with open('cert.html', encoding='utf-8') as f:
|
||||
with open('nr10_complementar_sep.html', encoding='utf-8') as f:
|
||||
html = f.read()
|
||||
|
||||
|
||||
@@ -25,9 +25,8 @@ html_rendered = template.render(
|
||||
progress=91.99,
|
||||
course='NR-10 Complementar (SEP)',
|
||||
today=today.strftime('%-d de %B de %Y'),
|
||||
start_date=today.strftime('%d/%m/%Y'),
|
||||
finish_date=today.strftime('%d/%m/%Y'),
|
||||
due_date=today.strftime('%d/%m/%Y'),
|
||||
started_date=today.strftime('%d/%m/%Y'),
|
||||
finished_date=today.strftime('%d/%m/%Y'),
|
||||
)
|
||||
|
||||
HTML(string=html_rendered, base_url='').write_pdf('cert.pdf')
|
||||
|
||||
Reference in New Issue
Block a user