Skip to content

Commit

Permalink
Consistency of param ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-sheldon committed Oct 16, 2023
1 parent 958ec20 commit db6457a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ doc02_key = bh.add_document_by_b64(filename, pdf_b64)

# 3) Add a document that you have already read into a Python bytearray object
filename, pdf_bytearray = read_a_file_into_bytearray()
doc03_key = bh.add_document_by_bytearray(pdf_bytearray, filename)
doc03_key = bh.add_document_by_bytearray(filename, pdf_bytearray)

# 4) Add a document as a File object. Make sure to use 'with' or suitably close the file
# after creating the document.
Expand Down
2 changes: 1 addition & 1 deletion src/blueink/bundle_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def add_document_by_b64(self, filename: str, b64str: str, **additional_data):
return document.key

def add_document_by_bytearray(
self, byte_array: bytearray, filename: str, **additional_data
self, filename: str, byte_array: bytearray, **additional_data
) -> str:
"""Add a file using a python bytearray object
Expand Down

0 comments on commit db6457a

Please sign in to comment.