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

This commit is contained in:
Tom Hubrecht 2025-01-20 20:14:35 +01:00
parent 1a8fe48d05
commit 81af13a216
Signed by: thubrecht
SSH key fingerprint: SHA256:r+nK/SIcWlJ0zFZJGHtlAoRwq1Rm+WcKAm5ADYMoQPc

View file

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