4 Commits
v3.1 ... v3.1-1

Author SHA1 Message Date
3e35e6fb05 New builds 2019-04-02 12:09:54 +02:00
48465446ec Increment version to 3.1-1 2019-04-02 12:05:21 +02:00
971bf846ab Merge branch 'dev' 2019-04-02 12:03:37 +02:00
d879cf389d Fixed bug change date 2019-04-02 12:03:07 +02:00
5 changed files with 7 additions and 8 deletions

View File

@ -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

View File

@ -1,6 +1,6 @@
[Application]
name=IFPass
version=3.1
version=3.1-1
entry_point=IFPass:main
icon=IF.ico
console=true

View File

@ -1,6 +1,6 @@
[Application]
name=IFPass
version=3.1
version=3.1-1
entry_point=IFPass:main
icon=IF.ico
console=true