@@ -366,14 +366,13 @@ def complete_dataset_with_args(
366366
367367 # Drug Information
368368 InvestigationDatasetsPage (self .page ).click_show_drug_information ()
369- if drug_information .get ("drug_type1" ):
370- logging .info ("Filling out drug information" )
371- InvestigationDatasetsPage (self .page ).select_drug_type_option1 (
372- drug_information ["drug_type1" ]
373- )
374- InvestigationDatasetsPage (self .page ).fill_drug_type_dose1 (
375- drug_information ["drug_dose1" ]
376- )
369+ logging .info ("Filling out drug information" )
370+ InvestigationDatasetsPage (self .page ).select_drug_type_option1 (
371+ drug_information ["drug_type1" ]
372+ )
373+ InvestigationDatasetsPage (self .page ).fill_drug_type_dose1 (
374+ drug_information ["drug_dose1" ]
375+ )
377376
378377 logging .info ("Filling out endoscopy information" )
379378 self .fill_endoscopy_information (endoscopy_information )
@@ -397,11 +396,13 @@ def complete_dataset_with_args(
397396 failure_information ["failure reasons" ],
398397 )
399398
399+ # Polyp Information
400400 if polyp_information is not None :
401401 for polyp_number , polyp_info in enumerate (polyp_information , start = 1 ):
402402 logging .info (f"Filling out polyp { polyp_number } information" )
403403 self .fill_polyp_x_information (polyp_info , polyp_number )
404404
405+ # Polyp Intervention
405406 if polyp_intervention is not None :
406407 for polyp_number , intervention_entry in enumerate (
407408 polyp_intervention , start = 1
@@ -419,6 +420,7 @@ def complete_dataset_with_args(
419420 )
420421 self .fill_polyp_x_intervention (intervention_entry , polyp_number )
421422
423+ # Polyp Histology
422424 if polyp_histology is not None :
423425 for polyp_number , polyp_histology_info in enumerate (
424426 polyp_histology , start = 1
0 commit comments