Skip to content

Commit

Permalink
Adicionando col keywords na pesquisa de tema
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasansei committed Oct 3, 2023
1 parent 3b3113b commit f097f94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/elasnocongresso/spiders/camara_spider.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def parse_row_data(self, response):
item['ambito'] = response.xpath('//dados/statusProposicao/ambito/text()').extract_first()
item['apreciacao'] = response.xpath('//dados/statusProposicao/apreciacao/text()').extract_first()

theme_assertion = assert_theme({"ementa": item['ementa'], "ementaDetalhada": item['ementaDetalhada']})
theme_assertion = assert_theme({"ementa": item['ementa'], "ementaDetalhada": item['ementaDetalhada'], "keywords": item['keywords']})
if theme_assertion['row_relevant']:
item['temas'] = ', '.join(theme_assertion['temas'])

Expand Down

0 comments on commit f097f94

Please sign in to comment.