From 726b8d0b4cd8d49b44d55b325e846fde34f4dbc9 Mon Sep 17 00:00:00 2001 From: Romina Fernandez Date: Mon, 31 Aug 2020 11:41:54 -0400 Subject: [PATCH] Make changes suggested in the PR review --- kingfisher_scrapy/spiders/scotland_base.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kingfisher_scrapy/spiders/scotland_base.py b/kingfisher_scrapy/spiders/scotland_base.py index 98d7ec29..d22147af 100644 --- a/kingfisher_scrapy/spiders/scotland_base.py +++ b/kingfisher_scrapy/spiders/scotland_base.py @@ -5,10 +5,8 @@ class ScotlandBase(PeriodicalSpider): - default_from_date = '2019-01' date_format = 'year-month' - default_until_date = date.today() - default_from_date = date(default_until_date.year - 1, default_until_date.month, 1) + default_from_date = date(date.today().year - 1, date.today().month, 1) notice_types = [ 1, # OJEU - F1 - Prior Information Notice