From 10c31fc9198bcc79915286aaf85a3c48330773de Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Fri, 19 Jan 2024 14:10:33 +0000 Subject: [PATCH] fix: tile archive download for projects --- src/backend/app/projects/project_routes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/app/projects/project_routes.py b/src/backend/app/projects/project_routes.py index 18e5ce3e31..f6df1ba6ec 100644 --- a/src/backend/app/projects/project_routes.py +++ b/src/backend/app/projects/project_routes.py @@ -1065,9 +1065,9 @@ async def download_tiles(tile_id: int, db: Session = Depends(database.get_db)): log.info(f"User requested download for tiles: {tiles_path.path}") project_id = tiles_path.project_id - project_name = await project_crud.get_project(db, project_id).project_name_prefix + project = await project_crud.get_project(db, project_id) filename = Path(tiles_path.path).name.replace( - f"{project_id}_", f"{project_name.replace(' ', '_')}_" + f"{project_id}_", f"{project.project_name_prefix.replace(' ', '_')}_" ) log.debug(f"Sending tile archive to user: {filename}")