Skip to content

Commit

Permalink
fix: tile archive download for projects
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Jan 19, 2024
1 parent b44ebee commit 10c31fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/app/projects/project_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")

Expand Down

0 comments on commit 10c31fc

Please sign in to comment.