Corrections

This commit is contained in:
Jordan ERNST 2019-02-28 16:31:11 +01:00
parent 3dbb48d7fc
commit a500e22678

View File

@ -237,11 +237,6 @@ def writeindb(titre, firstname, surname, clientID, dateinsc, dateexp, new):
csvfile.truncate(0)
csvfile.write(content)
reader = csv.reader(csvfile, delimiter=';')
writer = csv.writer(csvfile, delimiter=';')
for index, member in enumerate(reader):
if member[3] == clientID:
print(colored('[OK]', 'green'))
@ -421,6 +416,7 @@ def memberdo(choix, member):
clientID = member[3]
dateinsc = member[4]
dateexp = member[5]
os.system('cls')
if choix == '1': # Edit member
while "the informations are incorrect": # Loop Filling informations
@ -439,7 +435,10 @@ def memberdo(choix, member):
os.system('cls')
if version != 'devnocam':
picture = getpic()
clientID = member[3]
else:
# We crop pic from the previous card
pass
barcode = barcode_gen(clientID)
fillcard(clientID, titrename, firstname, dateexp, barcode, picture)
cartefilename = mergepdf()
@ -448,9 +447,6 @@ def memberdo(choix, member):
printcard(cartefilename)
writeindb(titre, firstname, surname, clientID, dateinsc, dateexp, new=False)
break
else:
# We crop pic from the previous card
pass
elif choix == '2': # Renew subscription
print(2)