From 5ce7424fe6e09a3d57fedd0a71efe627d90f3454 Mon Sep 17 00:00:00 2001 From: TheyWorkForYou Live CVS User Date: Mon, 29 Apr 2024 09:27:43 +0100 Subject: [PATCH] [Scotland] Match old parser ID setup. --- pyscraper/sp_2024/convert.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pyscraper/sp_2024/convert.py b/pyscraper/sp_2024/convert.py index b01b0f64..7a72e0c7 100644 --- a/pyscraper/sp_2024/convert.py +++ b/pyscraper/sp_2024/convert.py @@ -35,7 +35,11 @@ class IDFactory: latest_minor: int = -1 def _current_id(self) -> str: - return f"{self.base_id}{self.committee_slug}/{self.iso_date}.{self.latest_major}.{self.latest_minor}" + if self.committee_slug == 'meeting-of-the-parliament': + slug = '' + else: + slug = self.committee_slug + '/' + return f"{self.base_id}{slug}{self.iso_date}.{self.latest_major}.{self.latest_minor}" def get_next_major_id(self) -> str: self.latest_major += 1