Greenstand / treetracker-query-api

To fetch Greenstand map data for client's like web map, wallet app, and so on.
GNU General Public License v3.0
14 stars 58 forks source link

A hack to display organization 1642's planter list #334

Open dadiorchen opened 1 year ago

dadiorchen commented 1 year ago

Currently, the planter list on this page is empty: https://map.treetracker.org/organizations/1642 This is correct, because the organization 1642 does have no planter, but the 1642 is a special org in the system, it is a workaround for org 178 (freetown) to display the actual tree rather than capture, we manually put all capture into this org 1642, so we need to do a hack (hard code) workaround for displaying the planter list, which means: the API: /planters?organization_id=1642 should actually return the result of 178.


Some hints: