File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -485,7 +485,7 @@ credentials = ('id', 'secret')
485
485
# this will store the token on firestore under the tokens collection on the defined doc_id.
486
486
# you can pass strings to token_path or Path instances from pathlib
487
487
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
489
489
token_backend = FirestoreBackend(client = firestore.Client(), collection = ' tokens' , doc_id = document_id)
490
490
account = Account(credentials, token_backend = token_backend)
491
491
@@ -1167,7 +1167,7 @@ if files:
1167
1167
# to check for the result just loop over check_status.
1168
1168
# check_status is a generator that will yield a new status and progress until the file is finally copied
1169
1169
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'
1171
1171
copied_item = operation.get_item() # the copy operation is completed so you can get the item.
1172
1172
if copied_item:
1173
1173
copied_item.delete() # ... oops!
You can’t perform that action at this time.
0 commit comments