(self)
return False
Returns True if the active flag was changed and the schedule instance should be saved.
        Returns False if nothing changed.
Returns True if the active flag was changed and the schedule instance should be saved.
        Returns False if nothing changed.
Returns True if the active flag was changed and the schedule instance should be saved . Returns False if nothing changed .
def check_active_flag_against_schedule(self):
        """
        Returns True if the active flag was changed and the schedule instance should be saved.
        Returns False if nothing changed.
        """
        should_be_active = self.should_be_active()

        if self.active and not should_be_active:
            self.active = False
            return True

        if not self.active and should_be_active:
            if self.memoized_schedule.total_iterations_complete(self):
                return False

            self.active = True
            self.memoized_schedule.move_to_next_event_not_in_the_past(self)
            return True

        return False
def check_active_flag_against_schedule ( self ) : should_be_active = self . should_be_active ( ) if self . active and not should_be_active : self . active = False return True if not self . active and should_be_active : if self . memoized_schedule . total_iterations_complete ( self ) : return False self . active = True self . memoized_schedule . move_to_next_event_not_in_the_past ( self ) return True return False