mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-01-12 18:44:14 +00:00
corrected typename for tasks in data migration 3 w/ burnettk
This commit is contained in:
parent
ecdabe3f44
commit
abf87a5aa3
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user