Skip to content

Commit

Permalink
add cpf formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduard0803 committed Nov 23, 2023
1 parent 0b13989 commit d12dd6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gestao/web/api/document/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def generate_affiliation_file(user: User):
docx_replace(
doc,
**{
"cpf": user.cpf,
"cpf": user.cpf[:3] + '.' + user.cpf[3:6] + '.' + user.cpf[6:9] + '-' + user.cpf[9:],
"name": user.name,
"date": date_string,
},
Expand Down

0 comments on commit d12dd6d

Please sign in to comment.