Corrections
This commit is contained in:
parent
3dbb48d7fc
commit
a500e22678
14
IFPass.py
14
IFPass.py
@ -237,11 +237,6 @@ def writeindb(titre, firstname, surname, clientID, dateinsc, dateexp, new):
|
|||||||
csvfile.truncate(0)
|
csvfile.truncate(0)
|
||||||
csvfile.write(content)
|
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'))
|
print(colored('[OK]', 'green'))
|
||||||
|
|
||||||
|
|
||||||
@ -421,6 +416,7 @@ def memberdo(choix, member):
|
|||||||
clientID = member[3]
|
clientID = member[3]
|
||||||
dateinsc = member[4]
|
dateinsc = member[4]
|
||||||
dateexp = member[5]
|
dateexp = member[5]
|
||||||
|
|
||||||
os.system('cls')
|
os.system('cls')
|
||||||
if choix == '1': # Edit member
|
if choix == '1': # Edit member
|
||||||
while "the informations are incorrect": # Loop Filling informations
|
while "the informations are incorrect": # Loop Filling informations
|
||||||
@ -439,7 +435,10 @@ def memberdo(choix, member):
|
|||||||
os.system('cls')
|
os.system('cls')
|
||||||
if version != 'devnocam':
|
if version != 'devnocam':
|
||||||
picture = getpic()
|
picture = getpic()
|
||||||
clientID = member[3]
|
else:
|
||||||
|
# We crop pic from the previous card
|
||||||
|
pass
|
||||||
|
|
||||||
barcode = barcode_gen(clientID)
|
barcode = barcode_gen(clientID)
|
||||||
fillcard(clientID, titrename, firstname, dateexp, barcode, picture)
|
fillcard(clientID, titrename, firstname, dateexp, barcode, picture)
|
||||||
cartefilename = mergepdf()
|
cartefilename = mergepdf()
|
||||||
@ -448,9 +447,6 @@ def memberdo(choix, member):
|
|||||||
printcard(cartefilename)
|
printcard(cartefilename)
|
||||||
writeindb(titre, firstname, surname, clientID, dateinsc, dateexp, new=False)
|
writeindb(titre, firstname, surname, clientID, dateinsc, dateexp, new=False)
|
||||||
break
|
break
|
||||||
else:
|
|
||||||
# We crop pic from the previous card
|
|
||||||
pass
|
|
||||||
|
|
||||||
elif choix == '2': # Renew subscription
|
elif choix == '2': # Renew subscription
|
||||||
print(2)
|
print(2)
|
||||||
|
Loading…
Reference in New Issue
Block a user