Skip to content

Commit

Permalink
changed homepage statistics to only account for active users
Browse files Browse the repository at this point in the history
ok
  • Loading branch information
karabalalala committed Dec 11, 2024
1 parent d9a16e9 commit 27d8b3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/core/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@


def index(request):
members = Profile.objects.count()
nationalities = Profile.objects.values("nationality").distinct().count()
members = Profile.objects.filter(user__is_active=True).count()
nationalities = Profile.objects.filter(user__is_active=True).values("nationality").distinct().count()
active_years = int((datetime.date.today() - FOUNDING_DATE).days // 365.25)
events_amount = "20+"
partners = Partner.objects.all().order_by("?")
Expand Down

0 comments on commit 27d8b3d

Please sign in to comment.