def _get_inactive_routes(self, min_inactive):
        now = datetime.utcnow()
        threshold = (now - timedelta(minutes=min_inactive)).isoformat()

        base_url, token = self._read_proxy_info()
        h = {"Authorization": "token {}".format(token)}
        proxy_url = base_url + "?inactive_since={}".format(threshold)
        debug_log(self.TAG, "proxy_url: {}".format(proxy_url))
        try:
            r = requests.get(proxy_url, headers=h)
            if r.status_code == 200:
                routes = r.json().keys()
                return map(lambda r: r[1:], routes)
        except requests.exceptions.ConnectionError:
            warning_log(self.TAG, "Could not get all routes inactive for {} minutes".format(min_inactive))
        return None
dataset/ETHPy150Open binder-project/binder/binder/cluster.py/KubernetesManager._get_inactive_routes/original