Skip to content

Commit 0841102

Browse files
committed
Fix links init
1 parent 8e1fe72 commit 0841102

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

caltechdata_api/cli.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def get_names(orcid):
257257
def upload_supporting_file(record_id=None):
258258
filepath = ""
259259
filepaths = []
260-
file_link = ""
260+
file_links = []
261261
while True:
262262
choice = get_user_input(
263263
"Do you want to upload or link data files? (upload/link/n): "
@@ -277,8 +277,6 @@ def upload_supporting_file(record_id=None):
277277
# Find the files
278278
files = s3.glob(path + record_id + "/*")
279279

280-
file_links = []
281-
282280
for link in files:
283281
fname = link.split("/")[-1]
284282
if "." not in fname:

0 commit comments

Comments
 (0)