File tree 2 files changed +8
-6
lines changed
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -135,10 +135,10 @@ def process_data(x):
135
135
problems = pg .paginate_queryset (queryset = queryset , request = request , view = self )
136
136
137
137
ps = ProblemListSerializer (problems , many = True )
138
- return Response (
139
- { "count" : queryset .count (), "res" : [ process_data ( x ) for x in ps . data ]} ,
140
- status = status . HTTP_200_OK ,
141
- )
138
+ return Response ({
139
+ "count" : queryset .count (),
140
+ "res" : [ process_data ( x ) for x in ps . data ]
141
+ }, status = status . HTTP_200_OK )
142
142
143
143
class ProblemListCountView (APIView ):
144
144
def get (self , request ):
Original file line number Diff line number Diff line change @@ -74,8 +74,10 @@ def process(x):
74
74
statuses = pg .paginate_queryset (queryset = queryset , request = request , view = self )
75
75
76
76
ss = StatusListSerializer (statuses , many = True )
77
- return Response ({"res" : [process (x ) for x in ss .data ]}, status = status .HTTP_200_OK )
78
-
77
+ return Response ({
78
+ "count" : queryset .count (),
79
+ "res" : [process (x ) for x in ss .data ]
80
+ }, status = status .HTTP_200_OK )
79
81
80
82
class StatusListCountView (APIView ):
81
83
def get (self , request ):
You can’t perform that action at this time.
0 commit comments