remove "volume" and "type" columns from email ods (#9924)

This commit is contained in:
Serghei Mihai 2016-02-11 09:45:25 +01:00 committed by Frédéric Péters
parent f16fe9fb5b
commit 612e451386
1 changed files with 2 additions and 4 deletions

View File

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