]> git.0d.be Git - django-panik-newsletter.git/commitdiff
load-from-spip-liste: fix importing text format subscribers
authorFrédéric Péters <fpeters@0d.be>
Mon, 2 Dec 2013 19:54:13 +0000 (20:54 +0100)
committerFrédéric Péters <fpeters@0d.be>
Mon, 2 Dec 2013 19:54:13 +0000 (20:54 +0100)
newsletter/management/commands/load-from-spip-liste.py

index 723c561d5566b3dcdf2c97b75c945e700e7c25db..db1ba23d282560ed4472eb997dfe98c0f1bff3a3 100644 (file)
@@ -49,7 +49,7 @@ class Command(BaseCommand):
             if self.verbose:
                 print 'Creating subscribers'
             for author_xml in self.root.iter('spip_auteurs_elargis'):
-                if author_xml.find('spip_listes_format').text not in ('text', 'html'):
+                if author_xml.find('spip_listes_format').text not in ('texte', 'html'):
                     continue
                 author = self.authors.get(author_xml.find('id_auteur').text)
                 if author.email is None: