From 97fe73f065226812ba293d04762ad6609c41eb9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=9B=BD=E7=92=87?= Date: Wed, 18 Dec 2024 14:30:56 +0800 Subject: [PATCH] feat: optimize code --- seahub/repo_metadata/apis.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seahub/repo_metadata/apis.py b/seahub/repo_metadata/apis.py index bcec3f8668..4bed850be3 100644 --- a/seahub/repo_metadata/apis.py +++ b/seahub/repo_metadata/apis.py @@ -303,7 +303,7 @@ def get(self, request, repo_id): #args check view_id = request.GET.get('view_id', '') start = request.GET.get('start', 0) - limit = request.GET.get('limit', 100) + limit = request.GET.get('limit', 1000) try: start = int(start) @@ -1661,7 +1661,7 @@ class MetadataTags(APIView): def get(self, request, repo_id): start = request.GET.get('start', 0) - limit = request.GET.get('limit', 100) + limit = request.GET.get('limit', 1000) try: start = int(start)