rl-institut / tier_spatial_planning

Part of the people Sun project
GNU Affero General Public License v3.0
4 stars 1 forks source link

Bug: "Download results" button on results page doesn't work #37

Open paulapreuss opened 5 months ago

paulapreuss commented 5 months ago

Clicking the button throws the following error:

{
    "detail": [
        {
            "loc": [
                "path",
                "project_id"
            ],
            "msg": "value is not a valid integer",
            "type": "type_error.integer"
        }
    ]
}

The url can't interpret project_id because it is not an integer. Before it is fixed, the bug can be circumvented by manually changing the broken redirect url (e.g. https://offgridplanner.org/download_data/%7B%7B%20project_id%20%7D%7D/csv/) to the actual project id (https://offgridplanner.org/download_data/**project_id**/csv/).

paulapreuss commented 4 months ago

Also related to a usability enhancement: It would be nice if the downloaded excel could be named according to the project name. When bulk downloading results, having all files called the same is very confusing.