Skip to content

Commit

Permalink
Add elif pra evitar o drop de itens no pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ddevdan committed Aug 7, 2024
1 parent 8c275fb commit e25c8d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions data_collection/gazette/spiders/base/barcodigital.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ def parse(self, response):

if document_date > self.end_date:
continue
elif document_date < self.start_date:
return

yield Gazette(
date=document_date,
Expand Down

0 comments on commit e25c8d3

Please sign in to comment.