Closed Mike-Heneghan closed 4 years ago
As the generate_report method requires a specific user added the account via django admin.
Successfully created a method to iterate through boundary_data and return a dictionary of regions and associated location IDs.
Merged into master
Add a new method which takes in locations and service areas and returns a dictionary of boundary titles as keys with location IDs as the value.
locations_in_service_areas(locations, ServiceArea)
returns:
result = {"Glasgow": [id_1, id_2, id_3], "Fife": [id_4, id_5, id_6] }