-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Separar a extração de dados da tag <contrib-group> nas seções <article-meta> e <sub-article> #751
Conversation
@@ -22,9 +22,16 @@ def collab(self): | |||
return None | |||
|
|||
@property | |||
def contribs(self): | |||
def contribs_in_article_meta(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@samuelveigarangel mantenha o @Property contribs, senão isso quebrará vários códigos.
Apenas crie o que você sentiu falta
def contribs_in_sub_article(self): | ||
return self.contribs(xpath_contrib=self.node.xpath(".//sub-article//contrib")) | ||
|
||
def contribs(self, xpath_contrib): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@samuelveigarangel use outro nome para o método, mantenha o contribs original como property
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Faça as correções
|
||
@property | ||
def contribs_in_sub_article(self): | ||
return self._extract_contribs(".//sub-article//contrib") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@samuelveigarangel o problema aqui é que você não está distinguindo de que sub-article é cada contrib. Altere de forma que seja possível selecionar contrib por sub-article.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@samuelveigarangel verifique o comentário
O que esse PR faz?
Separar a extração de dados da tag nas seções e
Onde a revisão poderia começar?
pelos commits
Como este poderia ser testado manualmente?
Algum cenário de contexto que queira dar?
N/A
Screenshots
Quais são tickets relevantes?
#739
Referências
N/A