Adds content_type to files.

This commit is contained in:
Aaron Louie 2020-01-23 12:17:17 -05:00
parent 532c00fde5
commit 72c3b10d7d
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ class ExampleDataLoader:
spec = WorkflowSpecModel(id=id, spec = WorkflowSpecModel(id=id,
display_name=display_name, display_name=display_name,
description=description) description=description)
file_model = FileModel(name=id + ".bpmn", type=FileType.bpmn, version="1", file_model = FileModel(name=id + ".bpmn", type=FileType.bpmn, content_type='text/xml', version="1",
last_updated=datetime.datetime.now(), primary=True, last_updated=datetime.datetime.now(), primary=True,
workflow_spec_id=id) workflow_spec_id=id)
filename = os.path.join(app.root_path, 'static', 'bpmn', id + ".bpmn") filename = os.path.join(app.root_path, 'static', 'bpmn', id + ".bpmn")