instedd / planwise

PlanWise applies algorithms and geospatial optimisation techniques to existing data on population, road networks and health facilities, so health care planners can better understand the unmet health needs of their constituents and better locate future health facilities.
GNU General Public License v3.0
40 stars 6 forks source link

fix: Don't double capacity on data returned in providers CSV #729

Closed ggiraldez closed 7 months ago

ggiraldez commented 7 months ago

Fixes #726

We're using merge-providers to construct the final data to export, which gathers providers and their attributes from several sources: providers set, scenario changeset and scenario providers data. Since merge-providers adds up its numeric fields, we were adding the capacity both from the final value found in :providers-data and the original provider set and/or the changeset.