Skip to content

Commit

Permalink
Merge pull request #584 from fragforce/dev
Browse files Browse the repository at this point in the history
Update prod - fix latest donation
  • Loading branch information
gpmidi committed Apr 14, 2023
2 parents 75d299b + 2826760 commit 4d4757c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ffdonations/views/donations.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from django.views.decorators.cache import cache_page

from ..tasks import *
from ..utils import event_name_maker
from ..utils import el_teams


@cache_page(settings.VIEW_DONATIONS_CACHE)
Expand All @@ -13,7 +13,7 @@ def v_donations(request):
recordCountVar = request.GET.get('recordCount', '0')
recordCountInt = int(recordCountVar)
update_donations_if_needed.delay()
listedDonos = DonationModel.objects.order_by(orderByVar).filter(participant__event__id__in=current_el_events())
listedDonos = DonationModel.objects.order_by(orderByVar).filter(team__id__in=el_teams())
if filterByVar != 'none':
listedDonos = listedDonos.filter(participant_id=filterByVar, amount__isnull=False)
else:
Expand Down

0 comments on commit 4d4757c

Please sign in to comment.