Skip to content

Commit

Permalink
updated output format for task mbtiles
Browse files Browse the repository at this point in the history
  • Loading branch information
nrjadkry committed Jan 5, 2024
1 parent d7e4dee commit 145ab87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/app/projects/project_crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -2218,7 +2218,7 @@ def get_project_tiles(
from app.s3 import add_file_to_bucket
add_file_to_bucket(
settings.S3_BUCKET_NAME,
f"/{project.organisation_id}/{project_id}/basemap.mbtiles",
f"/{project.organisation_id}/{project_id}/basemap.{output_format}",
outfile
)

Expand Down Expand Up @@ -2247,7 +2247,7 @@ def get_project_tiles(
else:
log.error(f"Failed to get bbox from task: {project_id}")

task_basemap_outfile = f"{tiles_dir}/{task_id}_{source}tiles.{output_format}"
task_basemap_outfile = f"{tiles_dir}/{task_id}_{source}tiles.mbtiles"

log.debug(
"Creating basemap with params: "
Expand Down

0 comments on commit 145ab87

Please sign in to comment.