fix(kfet/accounts): Exclude #13 from the statistics

This commit is contained in:
Tom Hubrecht 2025-01-20 20:14:35 +01:00 committed by catvayor
parent ce4d87571d
commit 6c095470f3

View file

@ -184,8 +184,8 @@ class DemandeSoireeView(FormView):
@teamkfet_required @teamkfet_required
def account(request): def account(request):
accounts = Account.objects.select_related("cofprofile__user").order_by("trigramme") accounts = Account.objects.select_related("cofprofile__user").order_by("trigramme")
positive_accounts = Account.objects.filter(balance__gte=0) positive_accounts = Account.objects.filter(balance__gte=0).exclude(trigramme="#13")
negative_accounts = Account.objects.filter(balance__lt=0) negative_accounts = Account.objects.filter(balance__lt=0).exclude(trigramme="#13")
return render(request, "kfet/account.html", { return render(request, "kfet/account.html", {
"accounts": accounts, "accounts": accounts,