def _get_all(self, url):
        """Return all results from URL given (i.e. page through them)

        Args:
            url(str): Full github URL with results.
        Returns:
            list: List of items returned.
        """
        results = None
        response = self.session.get(url)
        if response.status_code == 200:
            results = response.json()
            while (
                    response.links.get('next', False) and
                    response.status_code == 200
            ):
                response = self.session.get(response.links['next']['url'])
                results += response.json()
        if [200, 404] not in response.status_code:
            raise GitHubUnknownError(response.text)
        return results
dataset/ETHPy150Open mitodl/orcoursetrion/orcoursetrion/lib/github.py/GitHub._get_all/swapped operands of `not in`