datamade / django-councilmatic

:heartpulse: Django app providing core functions for *.councilmatic.org
http://councilmatic.org
MIT License
26 stars 16 forks source link

`source_url` does not necessarily align with `source_note` #227

Open reginafcompton opened 5 years ago

reginafcompton commented 5 years ago

We add the source_url by looking for the link to the web interface (rather than the api - might be worth asking why?): https://github.com/datamade/django-councilmatic/blob/master/councilmatic_core/management/commands/import_data.py#L954

However, the source_note (determined by looking at the 0th position in sources) does not necessarily return "web." https://github.com/datamade/django-councilmatic/blob/master/councilmatic_core/management/commands/import_data.py#L992

(n.b., hopefully, issues like these will be resolved, upon implementation of isolated databases – documenting the issue, nonetheless)