def _can_meet_constraints(self, primitive):
        """see if the node in question meets the primitive constraints"""
        self.logger.debug(primitive % 'Can I meet constraints on %s?')
        can_add = True

        self.logger.debug('current primitive: %s' % primitive)

        if primitive['constraints'] != []:
            constraint_filter = ' AND '.join(map(lambda x: '(%s)' % x,
                                                 primitive['constraints']))

            can_add = self._constraint_satisfied(constraint_filter)
        self.logger.debug('Answer: %s' % can_add)
        return can_add
dataset/ETHPy150Open rcbops/opencenter/opencenter/webapp/solver.py/Solver._can_meet_constraints/swapped operands of `%`