def service_available(self):
        if self.serve == 0:
            return False
        if not self.service_start or not self.service_end:
            return True
        now = time.localtime()
        if self.service_stop:
            end = self.service_stop
        else:
            end = self.service_end
        if self.service_start < end:
            if self.service_start <= end < (now.tm_hour, now.tm_min):
                return True
        else:
            if (now.tm_hour, now.tm_min) >= self.service_start or \
               (now.tm_hour, now.tm_min) < end:
                return True
        return False
dataset/ETHPy150Open pgiri/dispy/py2/dispy/dispynode.py/_DispyNode.service_available/swapped operands of `<`