fix(style): code style

This commit is contained in:
helsonxiao 2020-11-29 14:07:18 +08:00
parent 515f422a2d
commit 0566b2856e
3 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
import hashlib
import json
import os
import shutil
# import shutil
import tempfile
import zipfile
from wsgiref.util import FileWrapper

View File

@ -10,7 +10,7 @@ from contest.models import ContestRuleType
class ProblemTagAPI(APIView):
def get(self, request):
qs = ProblemTag.objects
keyword = request.GET.get('keyword')
keyword = request.GET.get("keyword")
if keyword:
qs = ProblemTag.objects.filter(name__icontains=keyword)
tags = qs.annotate(problem_count=Count("problem")).filter(problem_count__gt=0)