(self)
Load known repositories.
Load known repositories.
Load known repositories .
async def load_known_repositories(self):
        """Load known repositories."""
        self.logger.info("Loading known repositories")
        blacklist = await self.repo.get_contents("repositories/blacklist", "data")
        repositories = await self.get_repositories()

        for item in json.loads(blacklist.content):
            if item not in self.common.blacklist:
                self.common.blacklist.append(item)

        for category in repositories:
            for repo in repositories[category]:
                if repo in self.common.blacklist:
                    continue
                if self.is_known(repo):
                    continue
                try:
                    await self.register_repository(repo, category)
                except (AIOGitHubException, AIOGitHubRatelimit):
                    pass
async def load_known_repositories ( self ) : self . logger . info ( "Loading known repositories" ) blacklist = await self . repo . get_contents ( "repositories/blacklist" , "data" ) repositories = await self . get_repositories ( ) for item in json . loads ( blacklist . content ) : if item not in self . common . blacklist : self . common . blacklist . append ( item ) for category in repositories : for repo in repositories [ category ] : if repo in self . common . blacklist : continue if self . is_known ( repo ) : continue try : await self . register_repository ( repo , category ) except ( AIOGitHubException , AIOGitHubRatelimit ) : pass