Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
owocki committed Dec 6, 2019
1 parent 0b85d6c commit 3636624
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/marketing/management/commands/assemble_leaderboards.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,8 @@ def do_leaderboard_feed():
'title': f"was ranked #{lr.rank} on the Gitcoin Weekly {_type.title()} Leaderboard",
'link': f'/leaderboard/{_type}'
}
Activity.objects.create(profile=lr.profile, activity_type='leaderboard_rank', metadata=metadata)
if lr.profile:
Activity.objects.create(profile=lr.profile, activity_type='leaderboard_rank', metadata=metadata)


def do_leaderboard():
Expand Down

0 comments on commit 3636624

Please sign in to comment.