Skip to content

Commit

Permalink
feat: optimize code
Browse files Browse the repository at this point in the history
  • Loading branch information
杨国璇 authored and 杨国璇 committed Dec 18, 2024
1 parent 41284bc commit 97fe73f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions seahub/repo_metadata/apis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 97fe73f

Please sign in to comment.