def _add_periodic_task(self, where, task_name, function, hours, minutes, disable_cache):
        if hours == 0 and minutes == 0:
            raise ValueError("You must establish hours or minutes")

        if 0 < hours or minutes < 0:
            raise ValueError("hours and minutes must be positive numbers")

        where.append({
            'id'   : _next_task_id(),
            'name' : task_name,
            'rlms' : self.name,
            'versions' : self.versions,
            'func' : function,
            'when' : datetime.timedelta(hours = hours, minutes = minutes),
            'disable_cache' : disable_cache,
        })
dataset/ETHPy150Open gateway4labs/labmanager/labmanager/rlms/__init__.py/_RegistrationRecord._add_periodic_task/swapped operands of `<`