Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The planter count is wrong #67

Open
dadiorchen opened this issue May 26, 2023 · 2 comments
Open

The planter count is wrong #67

dadiorchen opened this issue May 26, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@dadiorchen
Copy link
Contributor

API: https://prod-k8s.treetracker.org/reporting/capture/statistics?capture_created_start_date=1970-01-01&capture_created_end_date=2023-05-26

the response is wrong, the correct planter count is: 11xx

planters: {
    planters: [{name: "FCCYAR", number: "220"}, {name: "FCCFED", number: "209"}, {name: "FCC", number": "96"}],
   total: 1061
}
@dadiorchen dadiorchen added the bug Something isn't working label May 26, 2023
@Kpoke
Copy link
Collaborator

Kpoke commented Jul 9, 2023

@dadiorchen Can you send the query you used to get 11xx in the database?

@dadiorchen
Copy link
Contributor Author

I think is this one: get all planter under 178 (freetown)

select count(*) from planter where organization_id in (select entity_id from getEntityRelationshipChildren(178));

@sebastiangaertner I remember it is you raised this problem, can you confirm?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants