Skip to content

Commit 6743ab3

Browse files
author
Alejandro Casanovas
authored
Merge pull request O365#961 from Antonio-Costa00/patch-1
Update README.md
2 parents 30725a2 + 2094144 commit 6743ab3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ credentials = ('id', 'secret')
485485
# this will store the token on firestore under the tokens collection on the defined doc_id.
486486
# you can pass strings to token_path or Path instances from pathlib
487487
user_id = 'whatever the user id is' # used to create the token document id
488-
document_id = 'token_{}'.format(user_id) # used to uniquely store this token
488+
document_id = f"token_{user_id}" # used to uniquely store this token
489489
token_backend = FirestoreBackend(client=firestore.Client(), collection='tokens', doc_id=document_id)
490490
account = Account(credentials, token_backend=token_backend)
491491

@@ -1167,7 +1167,7 @@ if files:
11671167
# to check for the result just loop over check_status.
11681168
# check_status is a generator that will yield a new status and progress until the file is finally copied
11691169
for status, progress in operation.check_status(): # if it's an async operations, this will request to the api for the status in every loop
1170-
print('{} - {}'.format(status, progress)) # prints 'in progress - 77.3' until finally completed: 'completed - 100.0'
1170+
print(f"{status} - {progress}") # prints 'in progress - 77.3' until finally completed: 'completed - 100.0'
11711171
copied_item = operation.get_item() # the copy operation is completed so you can get the item.
11721172
if copied_item:
11731173
copied_item.delete() # ... oops!

0 commit comments

Comments
 (0)