From a711a3a4c8342fb87c2320f24e500be0053d347a Mon Sep 17 00:00:00 2001 From: cohen Date: Mon, 27 Aug 2007 17:40:49 +0200 Subject: [PATCH] On tend la periode de transaction Aout darcs-hash:20070827154049-f6463-5851e2e9b55b115a0e1fde578d510f3e2ce4b7d8.gz --- gestion/config.py | 2 +- gestion/ldap_crans.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gestion/config.py b/gestion/config.py index 2e554d25..b2d51b59 100644 --- a/gestion/config.py +++ b/gestion/config.py @@ -14,7 +14,7 @@ precab = False # Année scolaire en cours dat = localtime() -if dat[1]<9 : ann_scol = dat[0]-1 +if dat[1]<8 : ann_scol = dat[0]-1 else : ann_scol = dat[0] # Bloquage si carte d'étudiants manquante pour l'année en cours diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index a03eca6b..e0c5bdcf 100755 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -636,7 +636,7 @@ class CransLdap: # considéré non ok s'il n'a pas fourni sa carte d'etudiant # alors que l'on est desormais en periode de bloquage # définifif (cf config.py). - if time.localtime()[1] == 9: + if time.localtime()[1] in (8,9): # Pour septembre paiement année précédente ok el = "(|(paiement=%d)(paiement=%d))" % (ann_scol, ann_scol-1) else: