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

Commit 8cc0a25

Browse files
Solved a fucking str bug in the codebase causing crash
1 parent e130375 commit 8cc0a25

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

Profile/urls.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,31 +59,31 @@
5959
# Payment Info
6060
path("paymentinfo", views.PaymentInfo.as_view(), name="PaymentInfo"),
6161

62-
#Get the profile info and also update
62+
# Get the profile info and also update
6363
path('profile', views.ProfileAPIView.as_view(), name='profile'),
6464

65-
#Create a transaction
65+
# Create a transaction
6666
path('checkout', views.TransactionCreateView.as_view(), name="withdraw"),
6767

68-
#Get user recent earnings
68+
# Get user recent earnings
6969
path('recent-earnings', views.RecentEarningsView.as_view(), name='recent_earnings'),
7070

71-
#update the user password
71+
# update the user password
7272
path('update-password', views.UpdatePasswordView.as_view(), name='update_password'),
7373

74-
#help center Api
74+
# help center Api
7575
path('helpcenter', views.HelpCenterAPIView.as_view(), name='helpcenter-list'),
7676

77-
#Version Control api
77+
# Version Control api
7878
path("version", views.VersionCheck.as_view(), name="versionCheck"),
7979

80-
#Refferal Checker api
80+
# Refferal Checker api
8181
path('referral-info', views.GetReferralInfoAPI.as_view(), name='get_referral_info_api'),
8282

83-
#Verify pin
83+
# Verify pin
8484
path('verify-user-pin', views.CheckVerificationPin.as_view(), name="verifyPin"),
8585

86-
#app reward
86+
# app reward
8787
path('app-rate', views.AppRating.as_view(), name="apprate")
8888

8989
]
9 Bytes
Binary file not shown.

rewards/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def get(self, request):
121121

122122
user_wallet = get_object_or_404(Wallet, user=user)
123123

124-
return Response({'points': user_wallet.points}, status=status.HTTP_200_OK)
124+
return Response({'points': str(user_wallet.points)}, status=status.HTTP_200_OK)
125125

126126

127127
# noinspection PyMethodMayBeStatic

0 commit comments

Comments
 (0)