Commit c067c7df authored by fred's avatar fred

load-from-spip-liste: fix importing text format subscribers

parent 5c53db65
...@@ -49,7 +49,7 @@ class Command(BaseCommand): ...@@ -49,7 +49,7 @@ class Command(BaseCommand):
if self.verbose: if self.verbose:
print 'Creating subscribers' print 'Creating subscribers'
for author_xml in self.root.iter('spip_auteurs_elargis'): 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 continue
author = self.authors.get(author_xml.find('id_auteur').text) author = self.authors.get(author_xml.find('id_auteur').text)
if is None: if is None:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment