Skip to content

Commit

Permalink
LxmlBormeCParser: cifs es un set()
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloCastellano committed Apr 21, 2016
1 parent 6ad82a1 commit e94489c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion bormeparser/backends/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
pass

from .pypdf2.parser import PyPDF2Parser
from .seccion_c.lxml.parser import LxmlBormeCParser

__all__ = ['parser1', 'pypdf2']
__all__ = ['parser1', 'pypdf2', 'seccion_c']
2 changes: 1 addition & 1 deletion bormeparser/backends/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def parse(self):
'empresa': 'DESARROLLOS ESPECIALES DE SISTEMAS DE ANCLAJE, S.A.',
'diario_numero': '101',
'publication_date': datetime.date(2011, 5, 27),
'cifs': ['B31136005', 'A58348038', 'A31017494', 'A58348038', 'A31067218'],
'cifs': {'B31136005', 'A58348038', 'A31017494', 'A31067218'},
'pagina_inicial': '22110',
'pagina_final': '22116',
'texto': 'Por acuerdo del Consejo de Administración de la compañía "Desarrollos Especiales de Sistemas de Anclaje, S.A." se convoca a los accionistas a la '
Expand Down
4 changes: 2 additions & 2 deletions bormeparser/backends/seccion_c/lxml/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ def __init__(self, filename, log_level=logging.WARN):
logger.setLevel(log_level)

def _clean_cif(self, companies):
cifs = []
cifs = set()
for cif in companies:
cif = cif.replace('.', '').replace('-', '')
cifs.append(cif)
cifs.add(cif)
return cifs

def parse(self):
Expand Down

0 comments on commit e94489c

Please sign in to comment.