Commit 923206f2 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Fix deployement

parent 37967f5e
......@@ -10,6 +10,10 @@ class WorkflowRunner:
self.record_set_id = kwargs['recordSetId']
self.xml_identifier_field_name = kwargs['identifierFieldName']
self.xml_record_tag = kwargs['recordTag']
self.table_sheet_index = kwargs['tableSheetIndex'] if 'tableSheetIndex' in kwargs else 1
self.table_header_count = kwargs['tableHeaderCount'] if 'tableHeaderCount' in kwargs else 1
self.table_header_index = kwargs['tableHeaderIndex'] if 'tableHeaderIndex' in kwargs else 1
self.table_identifier_index = kwargs['tableIdentifierIndex'] if 'tableIdentifierIndex' in kwargs else 1
def run(self):
drupal_uuid = str(uuid.uuid4())
......@@ -23,7 +27,11 @@ class WorkflowRunner:
'institutionId': self.institution_id,
'xmlIdentifierFieldName': self.xml_identifier_field_name,
'xmlRecordTag': self.xml_record_tag,
'isPublished': False
'isPublished': False,
'tableSheetIndex': self.table_sheet_index,
'tableHeaderCount': self.table_header_count,
'tableHeaderIndex': self.table_header_index,
'tableIdentifierIndex': self.table_identifier_index,
}
}
url_workflow = '{}/importprocess/{}/{}/start'.format(self.api_endpoint, self.institution_id, self.record_set_id)
......
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