You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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. replaceif subcluster_number:
byif subcluster_number or None:
.And add tests for this.
The text was updated successfully, but these errors were encountered: