Skip to content

Commit

Permalink
Merge pull request #56 from haileyhoyat/main
Browse files Browse the repository at this point in the history
Update cle_city_council.py
  • Loading branch information
skorasaurus authored Oct 25, 2022
2 parents 66aa07c + 14fbe52 commit 105ed65
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions city_scrapers/spiders/cle_city_council.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,25 @@ def parse_legistar(self, events):
needs.
"""
for event in events:
meeting = Meeting(
title=event["Name"]["label"],
description=self._parse_description(event),
classification=self._parse_classification(event),
start=self.legistar_start(event),
end=None,
all_day=False,
time_notes="",
location=self._parse_location(event),
links=self.legistar_links(event),
source=self.legistar_source(event),
)

meeting["status"] = self._get_status(meeting)
meeting["id"] = self._get_id(meeting)

yield meeting
start = self.legistar_start(event)
if start:
meeting = Meeting(
title=event["Name"]["label"],
description=self._parse_description(event),
classification=self._parse_classification(event),
start=start,
end=None,
all_day=False,
time_notes="",
location=self._parse_location(event),
links=self.legistar_links(event),
source=self.legistar_source(event),
)

meeting["status"] = self._get_status(meeting)
meeting["id"] = self._get_id(meeting)

yield meeting

def _parse_description(self, item):
"""Parse or generate meeting description."""
Expand Down

0 comments on commit 105ed65

Please sign in to comment.