add user-management

This commit is contained in:
2025-05-29 13:28:54 -03:00
parent 797a325cb0
commit 590cf10777
35 changed files with 5275 additions and 223 deletions

View File

@@ -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')