Skip to content
This repository was archived by the owner on Aug 29, 2023. It is now read-only.

Commit 1c422ee

Browse files
Changes made and some of the working part of the code
1 parent dbd6870 commit 1c422ee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
17 Bytes
Binary file not shown.

rewards/views.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def get(self, request, *args, **kwargs):
258258
userMonsterHunterObject.save()
259259
return Response({"message": str(userMonsterHunterObject.turn_available)}, status=status.HTTP_200_OK)
260260
except Exception as e:
261-
return Response({"message": "Some Error Occured"}, status=status.HTTP_400_BAD_REQUEST)
261+
return Response({"message": "Some Error Occurred"}, status=status.HTTP_400_BAD_REQUEST)
262262

263263

264264
class MonsterHunterApi(viewsets.ModelViewSet):
@@ -270,7 +270,7 @@ def post(self, request, *args, **kwargs):
270270
if serializer.is_valid():
271271
points = serializer.validated_data['points']
272272

273-
# Add thoese points to wallet and deduct a turn
273+
# Add these points to wallet and deduct a turn
274274
userWallet = Wallet.objects.get(user=request.user)
275275
userWallet.points += int(points)
276276
userWallet.save()
@@ -286,7 +286,7 @@ def post(self, request, *args, **kwargs):
286286

287287
return Response({"message": "Done"}, status=status.HTTP_200_OK)
288288
else:
289-
return Response({"message": "something happend"}, status=status.HTTP_400_BAD_REQUEST)
289+
return Response({"message": "something happened"}, status=status.HTTP_400_BAD_REQUEST)
290290

291291

292292
class AddMonsterHunterApi(APIView):

0 commit comments

Comments
 (0)