@@ -121,7 +121,7 @@ def get(self, request):
121
121
122
122
user_wallet = get_object_or_404 (Wallet , user = user )
123
123
124
- return Response ({'points ' : str (user_wallet .points )}, status = status .HTTP_200_OK )
124
+ return Response ({'message ' : str (user_wallet .points )}, status = status .HTTP_200_OK )
125
125
126
126
127
127
# noinspection PyMethodMayBeStatic
@@ -145,7 +145,7 @@ def get(self, request):
145
145
spin_wheel .save ()
146
146
147
147
# Return the current spin availability for the user
148
- return Response ({'spin_available ' : str (spin_wheel .spin_available )}, status = status .HTTP_200_OK )
148
+ return Response ({'message ' : str (spin_wheel .spin_available )}, status = status .HTTP_200_OK )
149
149
150
150
151
151
# noinspection PyMethodMayBeStatic
@@ -160,7 +160,7 @@ def post(self, request):
160
160
spin_wheel .spin_available += 1
161
161
spin_wheel .save ()
162
162
163
- return Response ({'spin_available ' : str (spin_wheel .spin_available )}, status = status .HTTP_200_OK )
163
+ return Response ({'message ' : str (spin_wheel .spin_available )}, status = status .HTTP_200_OK )
164
164
165
165
166
166
# noinspection PyMethodMayBeStatic
@@ -180,7 +180,7 @@ def get(self, request):
180
180
tt_object .turn_available = 10
181
181
tt_object .save ()
182
182
183
- return Response ({'turn_available ' : str (tt_object .turn_available )}, status = status .HTTP_200_OK )
183
+ return Response ({'message ' : str (tt_object .turn_available )}, status = status .HTTP_200_OK )
184
184
185
185
186
186
# noinspection PyMethodMayBeStatic
@@ -257,7 +257,7 @@ def get(self, request):
257
257
monster_hunter_object .turn_available = 2
258
258
monster_hunter_object .save ()
259
259
260
- return Response ({'turn_available ' : str (monster_hunter_object .turn_available )}, status = status .HTTP_200_OK )
260
+ return Response ({'message ' : str (monster_hunter_object .turn_available )}, status = status .HTTP_200_OK )
261
261
262
262
263
263
# noinspection PyMethodMayBeStatic
0 commit comments