merge with Xamora

This commit is contained in:
2024-01-08 20:39:06 +01:00
18 changed files with 191 additions and 27 deletions

View File

@ -12,7 +12,7 @@ class BlockView(APIView):
def get(self, request, pk):
block = BlockModel.objects.filter(pk=pk)
if (block):
if (block.exists()):
return Response(serializers.serialize("json", block), status=status.HTTP_200_OK)
else:
return Response("Not Found", status=status.HTTP_404_NOT_FOUND)