修复contest announcement的一些问题

This commit is contained in:
zema1
2017-11-06 19:05:21 +08:00
parent cec27407e1
commit 37d6dd84ee
12 changed files with 76 additions and 18 deletions

View File

@@ -111,7 +111,7 @@ class APIView(View):
limit = int(request.GET.get("limit", "10"))
except ValueError:
limit = 10
if limit < 0 or limit > 100:
if limit < 0 or limit > 250:
limit = 10
try:
offset = int(request.GET.get("offset", "0"))