Closed mrwilson closed 3 years ago
We want something like .timetable() on Election that aggregates all the known dates into a single dict (possibly alongside source legislation, but that's a stretch goal)
.timetable()
Election
This dict can be used for e.g. templating out tables in HTML.
def timetable(self) -> Dict[str,Dict[str,date]]: return { "sopn_publish_date": { "label": "Publication of persons nominated", "date": self.sopn_publish_date, "legislation": "..." } }
This has been done.
We want something like
.timetable()
onElection
that aggregates all the known dates into a single dict (possibly alongside source legislation, but that's a stretch goal)This dict can be used for e.g. templating out tables in HTML.