adding description to step notes
This commit is contained in:
@@ -977,12 +977,17 @@ def step_to_string(step):
|
||||
|
||||
name = step['wkt_step_name']
|
||||
|
||||
try:
|
||||
notes = ' - '+step['description']
|
||||
except KeyError:
|
||||
notes = ''
|
||||
|
||||
try:
|
||||
intensity = step['intensity']
|
||||
except KeyError:
|
||||
intensity = 0
|
||||
|
||||
s = '{name} {intensity} {duration} {unit} {target} {repeat}'.format(
|
||||
s = '{name} {intensity} {duration} {unit} {target} {repeat} {notes}'.format(
|
||||
nr = nr,
|
||||
name = name,
|
||||
unit=unit,
|
||||
@@ -990,6 +995,7 @@ def step_to_string(step):
|
||||
duration = duration,
|
||||
target=target,
|
||||
repeat = repeat,
|
||||
notes=notes,
|
||||
)
|
||||
|
||||
if type == 'RepeatStep':
|
||||
|
||||
Reference in New Issue
Block a user