scraper/github/queryManager.py
def _countdown(self, waitTime=0, printString="Waiting %*d seconds...", verbose=True):
        """Makes a pretty countdown.

        Args:
            gitquery (str): The query or endpoint itself.
                Examples:
                       query: 'query { viewer { login } }'
                    endpoint: '/user'
            printString (Optional[str]): A counter message to display.
                Defaults to 'Waiting %*d seconds...'
            verbose (Optional[bool]): If False, all extra printouts will be
                suppressed. Defaults to True.

        """
        if waitTime <= 0:
            waitTime = self.__retryDelay
        for remaining in range(waitTime, 0, -1):
            _vPrint(verbose, "\r" + printString % (len(str(waitTime)), remaining), end="", flush=True)
            time.sleep(1)
        if verbose:
            _vPrint(verbose, "\r" + printString % (len(str(waitTime)), 0))
def _countdown(self, waitTime=0, printString="Waiting %*d seconds...", verbose=True):
        if waitTime <= 0:
            waitTime = self.__retryDelay
        for remaining in range(waitTime, 0, -1):
            _vPrint(verbose, "\r" + printString % (len(str(waitTime)), remaining), end="", flush=True)
            time.sleep(1)
        if verbose:
            _vPrint(verbose, "\r" + printString % (len(str(waitTime)), 0))
def _countdown ( self , waitTime = 0 , printString = "Waiting %*d seconds..." , verbose = True ) : if waitTime <= 0 : waitTime = self . __retryDelay for remaining in range ( waitTime , 0 , - 1 ) : _vPrint ( verbose , "\r" + printString % ( len ( str ( waitTime ) ) , remaining ) , end = "" , flush = True ) time . sleep ( 1 ) if verbose : _vPrint ( verbose , "\r" + printString % ( len ( str ( waitTime ) ) , 0 ) )
Makes a pretty countdown.

        Args:
            gitquery (str): The query or endpoint itself.
                Examples:
                       query: 'query { viewer { login } }'
                    endpoint: '/user'
            printString (Optional[str]): A counter message to display.
                Defaults to 'Waiting %*d seconds...'
            verbose (Optional[bool]): If False, all extra printouts will be
                suppressed. Defaults to True.
Makes a pretty countdown .