Skip to content

Commit

Permalink
Reformatting file [3]
Browse files Browse the repository at this point in the history
  • Loading branch information
Isabelle Tot (UN) committed Apr 29, 2024
1 parent 94a735a commit 12cc7da
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/hdx/utilities/azure_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,16 +122,16 @@ def download_file(
headers = {
"x-ms-date": request_time,
"x-ms-version": api_version,
"Authorization": ("SharedKey " + account + ":" + signed_string,)
"Authorization": ("SharedKey " + account + ":" + signed_string,),
}

url = (
"https://"
+ account
+ ".blob.core.windows.net/"
+ container
+ "/"
+ blob
"https://"
+ account
+ ".blob.core.windows.net/"
+ container
+ "/"
+ blob
)

if keep and exists(url):
Expand Down Expand Up @@ -161,7 +161,7 @@ def upload_file(
account: str,
container: str,
key: str,
data: None
data: None,
) -> str:
"""Upload a file to a blob storage within a container for an azure storage account
Args:
Expand Down Expand Up @@ -190,7 +190,7 @@ def upload_file(
blob_client.upload_blob(
file_to_blob,
overwrite=True,
content_settings=ContentSettings(content_type="text/csv")
content_settings=ContentSettings(content_type="text/csv"),
)
logger.info("Successfully uploaded: %s" % dataset_name)
except Exception:
Expand Down

0 comments on commit 12cc7da

Please sign in to comment.