have pi simulate via API return a 201
This commit is contained in:
@@ -19,4 +19,4 @@ class PiLogViewSet(ReadOnlyModelViewSet):
|
||||
def simulate(self, request):
|
||||
"""Run one simulation of the pi estimator."""
|
||||
simulation, _, _ = PiLog.objects.simulate()
|
||||
return Response(self.get_serializer(simulation).data)
|
||||
return Response(self.get_serializer(simulation).data, 201)
|
||||
|
||||
Reference in New Issue
Block a user