Skip to content

Commit d0c830e

Browse files
committed
bump version to 0.1.1 and update file download method in SharePoint service
1 parent ec0a54b commit d0c830e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "office365-service"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
description = "Add your description here"
55
readme = "README.md"
66
authors = [

src/office365_service/sharepoint_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def baixar_arquivo(self, arquivo_sp: File | str, caminho_download: str):
168168
file_to_download = arquivo_sp
169169

170170
with open(caminho_download, "wb") as local_file:
171-
file_to_download.download(local_file)
171+
file_to_download.download_session(local_file).execute_query()
172172
print(f"Arquivo '{os.path.basename(str(arquivo_sp))}' baixado para '{caminho_download}'.")
173173

174174
@handle_sharepoint_errors()

0 commit comments

Comments
 (0)