Changeset 0ec1bff in flowtimer


Ignore:
Timestamp:
08/24/24 00:03:13 (11 months ago)
Author:
Enrico Schwass <ennoausberlin@…>
Branches:
guix
Children:
24dd246
Parents:
a438158
Message:

fix logic order in skip method

Signed-off-by: Enrico Schwass <ennoausberlin@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • flowtimer/Schedule.py

    ra438158 r0ec1bff  
    9898
    9999    def skip(self):
    100         if self.current_block.is_sequence():
    101             self.current_block.skip()
    102             print("Skip the next phase in sequence")
    103             return
    104100        if self.current_block_is_final():
    105101            print("Time over")
    106102            self.abort()
    107103            return
     104        if self.current_block.is_sequence():
     105            print("Skip the next phase in sequence")
     106            self.current_block.skip()
     107            if self.current_block.finished():
     108                self.current_block = self.upcoming_blocks()[0]
     109            return
     110
    108111        print("Jump to next block")
    109112        index = self.blocks.index(self.current_block)
Note: See TracChangeset for help on using the changeset viewer.