From 2d56bb74ebf47ee77b55b926ba4709dd2a446038 Mon Sep 17 00:00:00 2001 From: cqzlxl Date: Mon, 27 Jun 2022 22:42:33 +0800 Subject: [PATCH] FIX a bug it's an obvious bug. --- jupyterhub/apihandlers/proxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jupyterhub/apihandlers/proxy.py b/jupyterhub/apihandlers/proxy.py index 92e2e0fd..c73326ab 100644 --- a/jupyterhub/apihandlers/proxy.py +++ b/jupyterhub/apihandlers/proxy.py @@ -26,7 +26,7 @@ class ProxyAPIHandler(APIHandler): else: routes = {} end = offset + limit - for i, key in sorted(all_routes.keys()): + for i, key in enumerate(sorted(all_routes.keys())): if i < offset: continue elif i >= end: