have pi simulate via API return a 201
This commit is contained in:
parent
da815a1fc3
commit
d5e5343193
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user