Changeset 3b76475 in flowtimer
- Timestamp:
- 08/16/24 09:51:22 (9 months ago)
- Branches:
- guix
- Children:
- f959488
- Parents:
- 37ae3b7
- Location:
- flowtimer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
flowtimer/RecurringPhaseSequence.py
r37ae3b7 r3b76475 1 1 import json 2 2 from copy import deepcopy 3 from Phase import Phase3 from flowtimer.Phase import Phase 4 4 5 5 -
flowtimer/Schedule.py
r37ae3b7 r3b76475 44 44 45 45 def time_left(self): 46 return self.current_phase.time_left + sum([phase.time_left for phase in self.upcoming_phases ])46 return self.current_phase.time_left + sum([phase.time_left for phase in self.upcoming_phases()]) 47 47 48 48 def upcoming_phases(self): 49 49 index = self.phase_list.index(self.current_phase) 50 return self.phase_list[index:] 50 if index < len(self.phase_list): 51 return self.phase_list[index+1:] 52 return [] 51 53 52 54 def current_phase_is_final(self):
Note:
See TracChangeset
for help on using the changeset viewer.