Skip to content

Commit

Permalink
Merge branch 'kosovo-update' of github.com:open-contracting/kingfishe…
Browse files Browse the repository at this point in the history
…r-collect into kosovo-update
  • Loading branch information
yolile committed Dec 1, 2021
2 parents 08864aa + 4ecdbbb commit cb4cc1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kingfisher_scrapy/spiders/kosovo.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ def start_requests(self):
# The API is slow even with short periods, so we request one day at a time.
delta = self.until_date - self.from_date
for days in reversed(range(delta.days + 1)):
start = self.from_date + timedelta(days=days-1)
start = self.from_date + timedelta(days=days - 1)
end = self.from_date + timedelta(days=days)
url = f'https://ocdskrpp.rks-gov.net/krppapi/tenderrelease?endDateFrom=' \
url = 'https://ocdskrpp.rks-gov.net/krppapi/tenderrelease?endDateFrom=' \
f'{start.strftime("%Y-%m-%d")}&endDateEnd={end.strftime("%Y-%m-%d")}'

yield self.build_request(url, formatter=parameters('endDateFrom', 'endDateEnd'))
Expand Down

0 comments on commit cb4cc1c

Please sign in to comment.