Commit 65df7741 authored by Vilem Ded's avatar Vilem Ded
Browse files

fixing submission sheet contact indices

parent 7c26b4b8
......@@ -90,8 +90,8 @@ class DishXlsExporter:
dataset_dict["studies"].append(cohort_dict)
elif is_data(sheet):
datadec_dict = {'title' : sheet[1, 1],
'source_study' : sheet[2, 1],
datadec_dict = {'title' : sheet[1, 1].strip(),
'source_study' : sheet[2, 1].strip(),
"data_types":[]}
datadec_dict["data_type_notes"] = sheet[7, 1]
......@@ -274,20 +274,20 @@ class DishXlsExporter:
{"first_name": get_names_from_string(sheet[12, 1])[0],
"last_name":get_names_from_string(sheet[12, 1])[1],
"role": "Legal_Representative",
"email":sheet[10,1].strip(),
"email":sheet[13,1].strip(),
"affiliations": [self.process_institution(sheet[7,1])]
},
{"first_name": get_names_from_string(sheet[14, 1])[0],
"last_name":get_names_from_string(sheet[14, 1])[1],
"role": "Data_Protection_Officer",
"email":sheet[10,1].strip(),
"email":sheet[15,1].strip(),
"affiliations": [self.process_institution(sheet[7,1])]
}])
if sheet[16, 1] and sheet[18, 1]:
dataset_dict["contacts"].append({"first_name": get_names_from_string(sheet[14, 1])[0],
"last_name": get_names_from_string(sheet[14, 1])[1],
dataset_dict["contacts"].append({"first_name": get_names_from_string(sheet[16, 1])[0],
"last_name": get_names_from_string(sheet[16, 1])[1],
"role": sheet[18,1],
"email": sheet[10,1].strip(),
"email": sheet[17,1].strip(),
"affiliations": [self.process_institution(sheet[7,1])]
})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment