Skip to content

API does not correctly interpret 0 #424

@153957

Description

@153957

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions