File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -403,7 +403,7 @@ 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- idx += 1
406+ idx += 1
407407 print ((f"{ idx } / \n " ).join (files ))
408408 while True :
409409 filename = get_user_input (
@@ -416,9 +416,9 @@ def upload_supporting_file(record_id=None):
416416 print ("All files added successfully" )
417417 elif filename == "n" :
418418 break
419- elif (not len (filename ) == 0 ) and (filename [len (filename ) - 1 ] == '/' ):
419+ elif (not len (filename ) == 0 ) and (filename [len (filename ) - 1 ] == "/" ):
420420 try :
421- files_name = files [int (filename [0 ])- 1 ]
421+ files_name = files [int (filename [0 ]) - 1 ]
422422 filepath = os .path .abspath (files_name )
423423 filepaths .append (filepath )
424424 print ("File added successfully" )
You can’t perform that action at this time.
0 commit comments