WIP: contrôle cotisation

This commit is contained in:
Adrien Bourmault 2022-09-14 23:44:45 +02:00
parent 5b96fe66ce
commit 5084450960
No known key found for this signature in database
GPG Key ID: 6EB408FE0ACEC664
1 changed files with 3 additions and 1 deletions

View File

@ -330,7 +330,6 @@ def validate(member):
pass
set_file_content(WORKDIR+"/validé/"+filename+".tex", latexfile)
os.system("cd {} && pdflatex {}".format(WORKDIR+"/validé/", filename+".tex"))
os.remove(WORKDIR+"/transition/"+member)
# Preparing mail
mailheaders = get_file_content_all(RECEPT_MAIL_HEADERS) + "\n"
@ -347,6 +346,9 @@ def validate(member):
sendmail_with_attachment(mailheaders, mailtext, mailtattach, data, ending)
# The end
os.remove(WORKDIR+"/transition/"+member)
def validate_members():
for record in os.listdir(WORKDIR+"/transition"):
validate(record)