chambres_vides: correct typo vieux code

cf commit précédent 0addbac08e
This commit is contained in:
Daniel STAN 2013-10-02 15:33:55 +02:00
parent 0addbac08e
commit afefdaf4e3

View file

@ -37,8 +37,6 @@ import config
year = config.ann_scol year = config.ann_scol
delai = config.demenagement_delai delai = config.demenagement_delai
import config.mails.demenagement
# On récupère ceux qui n'ont pas payé cette année # On récupère ceux qui n'ont pas payé cette année
if config.periode_transitoire: if config.periode_transitoire:
bad_boys_e_s = conn.search('chbre=????&paiement=%d&paiement!=%d' % (year-1,year))['adherent'] bad_boys_e_s = conn.search('chbre=????&paiement=%d&paiement!=%d' % (year-1,year))['adherent']
@ -69,7 +67,6 @@ for clandestin in bad_boys_e_s:
to = clandestin.mail() to = clandestin.mail()
if not "@" in to: if not "@" in to:
to += "@crans.org" to += "@crans.org"
mail = config.mails.demenagement.message_demenagement % {"from" : "respbats@crans.org",
mail = mail_module.generate('demenagement', {"from" : "respbats@crans.org", mail = mail_module.generate('demenagement', {"from" : "respbats@crans.org",
"chambre" : exchambre, "chambre" : exchambre,
"jours" : int(ttl/86400) + 1, "jours" : int(ttl/86400) + 1,