Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions atlassian/confluence.py
Original file line number Diff line number Diff line change
Expand Up @@ -1502,16 +1502,15 @@
content_type = self.content_types.get(extension, "application/binary")

with open(filename, "rb") as infile:
content = infile.read()
return self.attach_content(
content,
name,
content_type,
page_id=page_id,
title=title,
space=space,
comment=comment,
)
return self.attach_content(

Check warning on line 1505 in atlassian/confluence.py

View check run for this annotation

Codecov / codecov/patch

atlassian/confluence.py#L1505

Added line #L1505 was not covered by tests
infile,
name,
content_type,
page_id=page_id,
title=title,
space=space,
comment=comment,
)

def download_attachments_from_page(self, page_id, path=None, start=0, limit=50, filename=None, to_memory=False):
"""
Expand Down