remove "volume" and "type" columns from email ods (#9924)
This commit is contained in:
parent
f16fe9fb5b
commit
612e451386
|
@ -88,8 +88,7 @@ def email_sectors(formdatas, when):
|
|||
subject = get_template('passerelle_montpellier_encombrants/email_subject.txt')
|
||||
message = get_template('passerelle_montpellier_encombrants/email_body.txt')
|
||||
|
||||
header = ('Commune', u'Prénom', 'Nom', 'Numero', 'Voie', 'Date', 'Volume',
|
||||
'Type d\'encombrant', u'Téléphone', 'Commentaire')
|
||||
header = ('Commune', u'Prénom', 'Nom', 'Numero', 'Voie', 'Date', u'Téléphone', 'Commentaire')
|
||||
|
||||
sectors = defaultdict(list)
|
||||
|
||||
|
@ -98,8 +97,7 @@ def email_sectors(formdatas, when):
|
|||
fields = data['fields']
|
||||
|
||||
data = [fields.get(d) or '' for d in ('commune', 'prenom', 'nom', 'numero',
|
||||
'voie', 'date', 'volume', 'type_encombrant',
|
||||
'telephone', 'commentaire')]
|
||||
'voie', 'date', 'telephone', 'commentaire')]
|
||||
|
||||
sector = get_sector(fields.get('commune_raw'), fields.get('adresse'))
|
||||
if sector:
|
||||
|
|
Loading…
Reference in New Issue