FIX a bug

it's an obvious bug.
This commit is contained in:
cqzlxl
2022-06-27 22:42:33 +08:00
committed by GitHub
parent 02da11e06e
commit 2d56bb74eb

View File

@@ -26,7 +26,7 @@ class ProxyAPIHandler(APIHandler):
else: else:
routes = {} routes = {}
end = offset + limit end = offset + limit
for i, key in sorted(all_routes.keys()): for i, key in enumerate(sorted(all_routes.keys())):
if i < offset: if i < offset:
continue continue
elif i >= end: elif i >= end: