Skip to content

Commit f0f40e3

Browse files
Update cli.py
1 parent a57a075 commit f0f40e3

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

caltechdata_api/cli.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -577,14 +577,8 @@ def edit_record(production):
577577

578578
response = requests.get(url, headers=headers)
579579
response_draft = requests.get(url_draft, headers=headers)
580-
581-
# print(production, response, response_draft)
582-
# print(response.status_code, response_draft.status_code)
583-
584580
data = response.json()
585581
data_draft = response_draft.json()
586-
587-
# print(data_draft)
588582
# Check if 'entries' exists and its length
589583
if (
590584
len(data.get("entries", [])) == 0
@@ -596,12 +590,6 @@ def edit_record(production):
596590
input("Do you want to keep existing files? (y/n): ").lower() == "y"
597591
)
598592

599-
# if response.status_code == 404 and response_draft.status_code == 404:
600-
# keepfile = False
601-
# else:
602-
603-
# keepfile = input("Do you want to keep existing files? (y/n): ").lower() == "y"
604-
605593
filepath, file_link = upload_supporting_file(record_id)
606594
if file_link:
607595
print(file_link)

0 commit comments

Comments
 (0)