def find_license_links_by_repo(self, repo_base, repo):
        query = ('SELECT license_link_id, repo_base, repo, license_id '
                 'FROM %s.%s where repo_base = %s and repo = %s;')
        params = (
                AsIs(settings.LICENSE_SCHEMA),
                AsIs(settings.LICENSE_LINK_TABLE),
                repo_base, repo)
        res = self.execute_sql(query, params)

        if not res['tuples']:
            return []

        return res['tuples']