Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
3e35e6fb05 | |||
48465446ec | |||
971bf846ab | |||
d879cf389d |
11
IFPass.py
11
IFPass.py
@ -23,7 +23,7 @@ from colorama import init
|
||||
from termcolor import colored
|
||||
|
||||
|
||||
version = '3.1' # dev/devnocam
|
||||
version = '3.1-1' # dev/devnocam
|
||||
|
||||
configdir = os.path.join(os.getenv('PROGRAMDATA'), 'IFPass')
|
||||
config = os.path.join(configdir, 'IFPass.conf')
|
||||
@ -436,9 +436,10 @@ def memberdo(choix, member):
|
||||
titre, firstname, surname, dateexp = memberedit(titre, firstname, surname, clientID, dateinsc, dateexp)
|
||||
|
||||
elif choix == '2': # Renew subscription
|
||||
print("1 - Renouveller l'abonnement automatiquement", "2 - Choisir la date d'expiration", sep='\n')
|
||||
choix = input("Choix : ")
|
||||
if choix == 1:
|
||||
changeexp = yes_or_no("Voulez-vous choisir la date d'expiration ?")
|
||||
if changeexp:
|
||||
dateexp = getdateexp()
|
||||
else:
|
||||
dateexp = datetime.strptime(dateexp, '%d/%m/%Y').date()
|
||||
diff = (dateexp - date.today()).days
|
||||
if diff >= 0:
|
||||
@ -446,8 +447,6 @@ def memberdo(choix, member):
|
||||
elif diff < 0:
|
||||
dateexp = date.today() + timedelta(days=365)
|
||||
dateexp = dateexp.strftime('%d/%m/%Y')
|
||||
elif choix == 2:
|
||||
dateexp = getdateexp()
|
||||
|
||||
if titre == 'Dr.':
|
||||
titrename = titre + ' ' + surname
|
||||
|
Binary file not shown.
Binary file not shown.
@ -1,6 +1,6 @@
|
||||
[Application]
|
||||
name=IFPass
|
||||
version=3.1
|
||||
version=3.1-1
|
||||
entry_point=IFPass:main
|
||||
icon=IF.ico
|
||||
console=true
|
||||
|
@ -1,6 +1,6 @@
|
||||
[Application]
|
||||
name=IFPass
|
||||
version=3.1
|
||||
version=3.1-1
|
||||
entry_point=IFPass:main
|
||||
icon=IF.ico
|
||||
console=true
|
||||
|
Reference in New Issue
Block a user