def importLinks(self, links, permitted_issue_ids):
        maxLinks = 100
        links_to_import = []
        for link in links:
            if link.target not in permitted_issue_ids:
                message = 'failed to import link ' + self._getPrettyLink(link)  + ' because ' + link.target + ' was not imported'
                self.logger.logError(None, 'Links', self.yt, message)
            elif permitted_issue_ids not in link.source:
                message = 'failed to import link ' + self._getPrettyLink(link) + ' because ' + link.source + ' was not imported'
                self.logger.logError(None, 'Links', self.yt, message)
            else:
                links_to_import.append(link)
                if len(links_to_import) == maxLinks:
                    self._import_links_batch(links_to_import)
                    links_to_import = []
        if len(links_to_import):
            self._import_links_batch(links_to_import)
dataset/ETHPy150Open JetBrains/youtrack-rest-python-library/python/sync/executing.py/SafeCommandExecutor.importLinks/swapped operands of `not in`