corrected typename for tasks in data migration 3 w/ burnettk

This commit is contained in:
jasquat 2023-10-16 14:51:50 -04:00
parent ecdabe3f44
commit abf87a5aa3

View File

@ -20,8 +20,8 @@ class Version3(DataMigrationBase):
bpmn_process_ids = []
for task_model in tasks:
new_properties_json = copy.copy(task_model.properties_json)
if "typename" not in new_properties_json or new_properties_json["typename"] != "task":
new_properties_json["typename"] = "task"
if "typename" not in new_properties_json or new_properties_json["typename"] != "Task":
new_properties_json["typename"] = "Task"
task_model.properties_json = new_properties_json
db.session.add(task_model)
bpmn_process_ids.append(task_model.bpmn_process_id)