Дату на новость

This commit is contained in:
iriska-gri committed 2023-12-27 10:28:32 +03:00
1 parent abdb0b6c82
commit a388bd37a6
6 files changed
+17 -77

No files matched your search

+2 -1
View File
@@ -119,11 +119,12 @@ class NewsCrossroadAPIView(ListAPIView):
result = NewsSerializer(newsqueryset, many=True).data
print(result, '------------------------------')
return Response({"result":result, "countpage": countpage})
# round(countpage/int(request.GET.get("countpage")))
def post(self, request):
if 'scores' in request.data: