File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments