Skip to content

Commit

Permalink
Update cle_city_council.py
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyhoyat authored Oct 21, 2022
1 parent 66aa07c commit aee926e
Showing 1 changed file with 20 additions and 17 deletions.
37 changes: 20 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,26 @@ 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
if (self.legistar_start(event) is NoneType):
return
else:
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

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

0 comments on commit aee926e

Please sign in to comment.