datamade / chi-councilmatic

:eyes: keep tabs on Chicago city council
https://chicago.councilmatic.org/
MIT License
21 stars 16 forks source link

show billversion according to latest date #412

Open derekeder opened 5 months ago

derekeder commented 5 months ago

once https://github.com/datamade/chicago-council-scrapers/issues/9 is resolved, fetch the latest bill according to date instead of using first to determine the latest version:

https://github.com/datamade/chi-councilmatic/blob/main/chicago/models.py#L122

fgregg commented 5 months ago

so the elms data source does not have the information about the dates of different versions, so the best that we can do is try to infer ording from the names of the files (currently stored in the "notes" field).

however, we were improperly putting some attachements of docs into the billversion table isntead of the attachment files, so fixing that should help.