We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c1af9f commit fe526bdCopy full SHA for fe526bd
caltechdata_api/cli.py
@@ -416,7 +416,7 @@ def upload_supporting_file(record_id=None):
416
print("All files added successfully")
417
elif filename == "n":
418
break
419
- elif len(filename) != 0 and filename[len(filename)-1] == '/':
+ elif filename == "":
420
files_name = files[int(filename[0])-1]
421
filepath = os.path.abspath(files_name)
422
filepaths.append(filepath)
0 commit comments