Skip to content

Commit

Permalink
overwrite=True for upload blob
Browse files Browse the repository at this point in the history
  • Loading branch information
JinIgarashi committed Oct 22, 2024
1 parent 9bbd76a commit 2a7d04d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ingest/fgb_upload/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ async def ingest_user_folder(user_id: str, container_client: ContainerClient, di
upload_blob(src_path=fgb_layer_path, connection_string=AZURE_STORAGE_CONNECTION_STRING,
container_name=container_client.container_name,
dst_blob_path=f"{pmtiles_path}.{layer_name}.fgb",
overwrite=False)
overwrite=True)
else:
# single layers
fgb_layers = dataset2fgb(fgb_dir=fgb_dir,
Expand All @@ -189,7 +189,7 @@ async def ingest_user_folder(user_id: str, container_client: ContainerClient, di
upload_blob(src_path=fgb_layer_path, connection_string=AZURE_STORAGE_CONNECTION_STRING,
container_name=container_client.container_name,
dst_blob_path=f"{pmtiles_path}.fgb",
overwrite=False)
overwrite=True)


async def main():
Expand Down

0 comments on commit 2a7d04d

Please sign in to comment.