Skip to content

Commit

Permalink
fix hackathon stats staff
Browse files Browse the repository at this point in the history
  • Loading branch information
octavioamu committed Aug 13, 2020
1 parent 78a15ba commit 8ef161e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/dashboard/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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,
Expand Down

0 comments on commit 8ef161e

Please sign in to comment.