Skip to content

Commit

Permalink
fixed update career awards function to show awards regardless of date…
Browse files Browse the repository at this point in the history
… and added a note
  • Loading branch information
Kudzayi committed Nov 17, 2024
1 parent 8f5b21f commit 719ad1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nba_stats/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,7 @@ def update_player_awards(request, player_id, player_name):
today = timezone.now().date()
player_awards_data = CareerAwards.objects.filter(player_id=player_id).first()

# check if award data already exists
if player_awards_data:
player_awards = player_awards_data.accomplishments
else:
Expand Down

0 comments on commit 719ad1c

Please sign in to comment.