Skip to content

Commit

Permalink
[Scotland] Match old parser ID setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
TheyWorkForYou Live CVS User committed Apr 29, 2024
1 parent d3d6f29 commit 5ce7424
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pyscraper/sp_2024/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5ce7424

Please sign in to comment.