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

API does not correctly interpret 0 #424

Open
153957 opened this issue Jan 22, 2025 · 0 comments
Open

API does not correctly interpret 0 #424

153957 opened this issue Jan 22, 2025 · 0 comments

Comments

@153957
Copy link
Member

153957 commented Jan 22, 2025

API endpoints to filter cluster by country, subclusters by clusters, or stations by subclusters, etc do not work correctly when the number being filtered on is 0.
Probably the is statements should not check the truthiness but instead check for None, i.e. replace if subcluster_number: by if subcluster_number or None:.
And add tests for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant