Skip to content

Commit 47ecb36

Browse files
authored
Update cli.py
1 parent 0fd8ddf commit 47ecb36

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

caltechdata_api/cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,8 @@ 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-
print((""+ str(++idx) + "/ \n").join(files))
406+
idx+=1
407+
print((""+ str(idx) + "/ \n").join(files))
407408
while True:
408409
filename = get_user_input(
409410
"Enter the filename to upload as a supporting file (or '*' to get all files currently in the directory, or the index number of the file as displayed followed by a /, otherwise 'n' to finish): "

0 commit comments

Comments
 (0)