Mike-Heneghan / ALISS

ALISS (A Local Information System for Scotland) is a service to help you find help and support close to you when you need it most.
https://aliss.org
0 stars 0 forks source link

Improve geographic reporting #124

Open Mike-Heneghan opened 4 years ago

Mike-Heneghan commented 4 years ago

From the feedback it would be useful to do the following:

Mike-Heneghan commented 4 years ago

From checking another management command which supports the verbose flag --verbose 1 that all methods need to include self to be able to use self.verbose.

Updated all method definitions and invocations to include self where appropriate.

Mike-Heneghan commented 4 years ago

Realised that the way the service_area_by_region_top_category_count method was written required calling services_in_service_area_regions every time a region report was required and only using a fraction of the data set.

This would not be performant as services_in_service_area_regions is very time consuming and demanding.

Wrote a method which calls services_in_service_area_regions once, prints the appropriate data and then uses the results for service_area_by_region_top_category_count.

Mike-Heneghan commented 4 years ago

Added further print statements for improving clarity.