Commit e6843375 authored by panos's avatar panos

Bug fixed in this plugin

parent c3cc2e52
...@@ -63,6 +63,8 @@ class UpdateWIP(SplitRoute.SplitRoute): ...@@ -63,6 +63,8 @@ class UpdateWIP(SplitRoute.SplitRoute):
if not last_step: if not last_step:
# find the step that follows (normal processing) # find the step that follows (normal processing)
for step in route: for step in route:
# introduced to fix the case were sequence is ''
if not step.get('sequence', 0) == '':
# the sequences must differ maximum one # the sequences must differ maximum one
if int(sequence)+1 == int(step.get('sequence',0)): if int(sequence)+1 == int(step.get('sequence',0)):
# and the corresponding step must have a defined technology # and the corresponding step must have a defined technology
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment