From 8ef161ee684d56369eea1cb64d8c5d4edd3b59ff Mon Sep 17 00:00:00 2001 From: octavioamu Date: Thu, 13 Aug 2020 19:55:23 -0300 Subject: [PATCH] fix hackathon stats staff --- app/dashboard/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/dashboard/views.py b/app/dashboard/views.py index 516c0347b78..bae04e91f3f 100644 --- a/app/dashboard/views.py +++ b/app/dashboard/views.py @@ -3717,7 +3717,7 @@ def dashboard_sponsors(request, hackathon='', panel='prizes'): founded_bounties = profile.bounties_funded.filter(event=hackathon_event) if profile.is_staff: - sponsor_profile = profile + sponsor_profile = is_sponsor_member.first() or profile query_prizes = Bounty.objects.filter(event=hackathon_event, current_bounty=True) elif is_sponsor_member.exists(): sponsor_profile = is_sponsor_member.first() @@ -3740,7 +3740,7 @@ def dashboard_sponsors(request, hackathon='', panel='prizes'): static('v2/images/twitter_cards/tw_cards-02.png')) network = get_default_network() hackathon_not_started = timezone.now() < hackathon_event.start_date and not request.user.is_staff - + print(sponsor_profile) org = { 'display_name': sponsor_profile.name, 'avatar_url': sponsor_profile.avatar_url,