Skip to content

Commit

Permalink
added task mbtiles into s3 bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
nrjadkry authored and spwoodcock committed Jan 8, 2024
1 parent 8d76b08 commit 11c08f5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/backend/app/projects/project_crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -2256,6 +2256,14 @@ def get_project_tiles(
log.error(str(e))
continue

# Upload task mbtile to s3
add_file_to_bucket(
settings.S3_BUCKET_NAME,
f"/{project.organisation_id}/{project_id}/basemap/{task_id}.mbtiles",
task_basemap_outfile
)


tile_path_instance.status = 4
db.commit()

Expand Down

0 comments on commit 11c08f5

Please sign in to comment.