AutoGen db and Card dir
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user