Spaces:
Running
Running
- modules/toWizard.py +3 -1
modules/toWizard.py
CHANGED
@@ -145,9 +145,11 @@ def find_best_direction(texts_list):
|
|
145 |
|
146 |
def create_wizard_file(data, text_mapping):
|
147 |
|
|
|
|
|
148 |
#add a name into the text_mapping when there is no name
|
149 |
for idx, key in enumerate(text_mapping.keys()):
|
150 |
-
if text_mapping[key] == '':
|
151 |
text_mapping[key] = f'unnamed_{key}'
|
152 |
|
153 |
|
|
|
145 |
|
146 |
def create_wizard_file(data, text_mapping):
|
147 |
|
148 |
+
not_change = ['pool','sequenceFlow','messageFlow','dataAssociation']
|
149 |
+
|
150 |
#add a name into the text_mapping when there is no name
|
151 |
for idx, key in enumerate(text_mapping.keys()):
|
152 |
+
if text_mapping[key] == '' and key.split('_')[0] not in not_change:
|
153 |
text_mapping[key] = f'unnamed_{key}'
|
154 |
|
155 |
|