Skip to content

Commit

Permalink
Change the name of property from MUNICIPALITY to TERRITORY
Browse files Browse the repository at this point in the history
antoniovendramin committed Jun 6, 2018
1 parent 4e3ab65 commit fd0b0bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions processing/data_collection/gazette/spiders/pr_curitiba.py
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@


class PrCuritibaSpider(BaseGazetteSpider):
MUNICIPALITY_ID = '4106902'
TERRITORY_ID = '4106902'
name = 'pr_curitiba'
allowed_domains = ['legisladocexterno.curitiba.pr.gov.br']
custom_settings = {
@@ -99,7 +99,7 @@ def parse_page(self, response):
date=parsed_date,
file_urls=["http://legisladocexterno.curitiba.pr.gov.br/DiarioSuplementoConsultaExterna_Download.aspx?id={}".format(gazette_id)],
is_extra_edition=True,
municipality_id=self.MUNICIPALITY_ID,
territory_id=self.TERRITORY_ID,
power='executive_legislature',
scraped_at=dt.datetime.utcnow()
)
@@ -111,7 +111,7 @@ def scrap_not_extra_edition(self, response):
date=parsed_date,
file_urls=["http://legisladocexterno.curitiba.pr.gov.br/DiarioConsultaExterna_Download.aspx?id={}".format(gazette_id)],
is_extra_edition=False,
municipality_id=self.MUNICIPALITY_ID,
territory_id=self.TERRITORY_ID,
power='executive_legislature',
scraped_at=dt.datetime.utcnow()
)

0 comments on commit fd0b0bc

Please sign in to comment.