Skip to content

Commit

Permalink
forgot the 2 in 24 -_-
Browse files Browse the repository at this point in the history
  • Loading branch information
Bentheminernz committed Nov 10, 2024
1 parent d80eab7 commit 1da2848
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion groups/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def groups_index(request):
user: User = request.user
member_groups = user.get_groups() if user.is_authenticated else None
if user.is_authenticated:
random_public_groups = Group.objects.filter(privacy_level = Group.PrivacyLevels.PUBLIC).exclude(owner=user).exclude(members=user).order_by('?')[:4]
random_public_groups = Group.objects.filter(privacy_level = Group.PrivacyLevels.PUBLIC).exclude(owner=user).exclude(members=user).order_by('?')[:24]
else:
random_public_groups = Group.objects.filter(privacy_level=Group.PrivacyLevels.PUBLIC).order_by('?')[:24]
pending_invites = user.pending_group_invites.all() if user.is_authenticated else None
Expand Down

0 comments on commit 1da2848

Please sign in to comment.