AutoGen db and Card dir
This commit is contained in:
parent
bc7482b29f
commit
13cfdf630c
@ -1 +0,0 @@
|
||||
Titre;Prénom;Nom;Numéro de client;Date d'inscripton;Date d'expiration
|
|
@ -44,6 +44,14 @@ pdftemplate = IFPassdir + 'Templates\IFPass_PDF_Template.pdf'
|
||||
pngtemplate = IFPassdir + 'Templates\IFPass_PNG_Template.png'
|
||||
fonttemplate = IFPassdir + 'Templates\Roboto-Bold.ttf'
|
||||
|
||||
def initialisation():
|
||||
if not os.path.exists(imgdir):
|
||||
os.makedirs(imgdir)
|
||||
if not os.path.exists(clientsfile):
|
||||
with open(clientsfile, 'w', newline='', encoding='utf-8') as csvfile:
|
||||
writer = csv.writer(csvfile, delimiter=';')
|
||||
writer.writerow(['Titre', 'Prénom', 'Nom', 'Numéro de client', 'Date d\'inscription', 'Date d\'expiration'])
|
||||
|
||||
|
||||
def get_fullname():
|
||||
firstname = input("Prénom : ").strip()
|
||||
@ -250,6 +258,7 @@ while "the informations are incorrect": # Loop Filling informations
|
||||
|
||||
if correct:
|
||||
os.system('cls')
|
||||
initialisation()
|
||||
picture = getpic()
|
||||
clientID = getclientID()
|
||||
barcode = barcode_gen(clientID)
|
||||
|
Loading…
Reference in New Issue
Block a user