Skip to content

Commit

Permalink
Update models.py
Browse files Browse the repository at this point in the history
added blocks and steals to model
  • Loading branch information
Kudzmat authored Nov 17, 2024
1 parent c0ed52d commit 1391af8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions nba_stats/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@ class PlayerBio(models.Model):
team_id = models.IntegerField(default=0000000000)
team_name = models.CharField(max_length=50, blank=True, null=True, default="N/A")
status = models.CharField(max_length=50, blank=True, null=True, default="N/A")
PTS = models.FloatField(blank=True, null=True, default=0) # Points per game
REB = models.FloatField(blank=True, null=True, default=0) # Rebounds per game
AST = models.FloatField(blank=True, null=True, default=0) # Assists per game
PTS = models.FloatField(blank=True, null=False, default=0) # Points per game
REB = models.FloatField(blank=True, null=False, default=0) # Rebounds per game
AST = models.FloatField(blank=True, null=False, default=0) # Assists per game
BLK = models.FloatField(blank=True, null=False, default=0) # Blocks per game
STL = models.FloatField(blank=True, null=False, default=0) # Steals per game
date = models.DateField(default=timezone.now, blank=True) # Automatically set to today's date

def save(self, *args, **kwargs):
Expand Down

0 comments on commit 1391af8

Please sign in to comment.