def listEntitlementClasses(self, authToken):
        cu = self.db.cursor()

        if self.authCheck(authToken, admin = True):
            # admins can see everything
            cu.execute("SELECT entGroup FROM EntitlementGroups")
        else:
            roleIds = self.getAuthRoles(cu, authToken)
            if not roleIds:
                return []

            cu.execute("""SELECT entGroup FROM EntitlementOwners
                            JOIN EntitlementGroups USING (entGroupId)
                            WHERE ownerGroupId IN (%s)""" %
                       ",".join([ x % "%d" for x in roleIds ]))

        return [ x[0] for x in cu ]
dataset/ETHPy150Open sassoftware/conary/conary/repository/netrepos/netauth.py/NetworkAuthorization.listEntitlementClasses/swapped operands of `%`