Skip to content

Commit cc90ed3

Browse files
committed
Fix black
1 parent 6751dfa commit cc90ed3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

caltechdata_api/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ def upload_supporting_file(record_id=None):
403403
files = [
404404
f for f in os.listdir() if not f.endswith(".json") and os.path.isfile(f)
405405
]
406-
idx+=1
406+
idx += 1
407407
print((f"{idx}/ \n").join(files))
408408
while True:
409409
filename = get_user_input(
@@ -416,9 +416,9 @@ def upload_supporting_file(record_id=None):
416416
print("All files added successfully")
417417
elif filename == "n":
418418
break
419-
elif (not len(filename) == 0) and (filename[len(filename) - 1] == '/'):
419+
elif (not len(filename) == 0) and (filename[len(filename) - 1] == "/"):
420420
try:
421-
files_name = files[int(filename[0])-1]
421+
files_name = files[int(filename[0]) - 1]
422422
filepath = os.path.abspath(files_name)
423423
filepaths.append(filepath)
424424
print("File added successfully")

0 commit comments

Comments
 (0)