From b3552262ed2f9d4fc9781c31b363f867f39b9a43 Mon Sep 17 00:00:00 2001 From: Jamil Atta Junior Date: Wed, 26 Jul 2017 22:00:03 -0300 Subject: [PATCH 1/2] =?UTF-8?q?Evitando=20'none'=20quando=20os=20atributos?= =?UTF-8?q?=20s=C3=A3o=20None?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- legendarium/urlegendarium.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/legendarium/urlegendarium.py b/legendarium/urlegendarium.py index cd4a804..3ce13cc 100644 --- a/legendarium/urlegendarium.py +++ b/legendarium/urlegendarium.py @@ -9,17 +9,17 @@ def __init__(self, acron='', year_pub='', volume='', number='', fpage='', fpage_sequence='', lpage='', article_id='', suppl_number='', doi='', order=''): - self.acron = str(acron).strip() - self.year_pub = str(year_pub).strip() - self.volume = str(volume).strip() - self.number = str(number).strip() - self.suppl_number = str(suppl_number).strip() - self.fpage = str(fpage).strip() - self.fpage_sequence = str(fpage_sequence).strip() - self.lpage = str(lpage).strip() - self.article_id = str(article_id).strip() - self.doi = str(doi).strip() - self.order = str(order).strip() + self.acron = str(acron).strip() if acron else '' + self.year_pub = str(year_pub).strip() if year_pub else '' + self.volume = str(volume).strip() if volume else '' + self.number = str(number).strip() if number else '' + self.suppl_number = str(suppl_number).strip() if suppl_number else '' + self.fpage = str(fpage).strip() if fpage else '' + self.fpage_sequence = str(fpage_sequence).strip() if fpage_sequence else '' + self.lpage = str(lpage).strip() if lpage else '' + self.article_id = str(article_id).strip() if article_id else '' + self.doi = str(doi).strip() if doi else '' + self.order = str(order).strip() if order else '' def __unicode__(self): return self.url_article From 782ddc890731e43ae0a773e0b4436fe598e52a99 Mon Sep 17 00:00:00 2001 From: Jamil Atta Junior Date: Thu, 27 Jul 2017 10:11:12 -0300 Subject: [PATCH 2/2] =?UTF-8?q?Ajustando=20a=20vers=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index c26e74e..906d793 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ setup( name='legendarium', - version='2.0.1', + version='2.0.2', description="Python library to handle SciELO's bibliographic legend", long_description=readme + '\n\n' + history, author="Jamil Atta Junior",