Commit e24fd00 1 parent b5815cd commit e24fd00 Copy full SHA for e24fd00
File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1246,9 +1246,10 @@ def home(request):
1246
1246
# Get top earners
1247
1247
top_earners = UserProfile .objects .filter (winnings__gt = 0 ).select_related ("user" ).order_by ("-winnings" )[:5 ]
1248
1248
1249
- # Get top referrals - users with the most successful signups
1249
+ # Get top referrals
1250
1250
top_referrals = (
1251
- InviteFriend .objects .filter (point_by_referral__gt = 0 ).annotate (signup_count = Count ("recipients" ), total_points = F ("point_by_referral" ))
1251
+ InviteFriend .objects .filter (point_by_referral__gt = 0 )
1252
+ .annotate (signup_count = Count ("recipients" ), total_points = F ("point_by_referral" ))
1252
1253
.select_related ("sender" , "sender__userprofile" )
1253
1254
.order_by ("-point_by_referral" )[:5 ]
1254
1255
)
You can’t perform that action at this time.
0 commit comments