have pi simulate via API return a 201

This commit is contained in:
Brian S. Stephan 2020-10-25 11:16:23 -05:00
parent da815a1fc3
commit d5e5343193
1 changed files with 1 additions and 1 deletions

View File

@ -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)