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