Skip to content

Commit

Permalink
Remove old fields
Browse files Browse the repository at this point in the history
  • Loading branch information
brianjp93 committed Oct 5, 2024
1 parent a5fb221 commit 7c9c3c5
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
21 changes: 21 additions & 0 deletions match/migrations/0049_remove_stats_riot_id_name_and_more.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Generated by Django 5.1.1 on 2024-10-05 23:03

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('match', '0048_match_end_of_game_result'),
]

operations = [
migrations.RemoveField(
model_name='stats',
name='riot_id_name',
),
migrations.RemoveField(
model_name='stats',
name='riot_id_tagline',
),
]
2 changes: 0 additions & 2 deletions match/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,8 +729,6 @@ class Stats(models.Model):

game_ended_in_early_surrender = models.BooleanField(default=False, blank=True)
game_ended_in_surrender = models.BooleanField(default=False, blank=True)
riot_id_name = models.CharField(max_length=128, default="", blank=True)
riot_id_tagline = models.CharField(max_length=128, default="", blank=True)

def __str__(self):
return f"Stats(participant={self.participant.summoner_name})"
Expand Down
2 changes: 0 additions & 2 deletions match/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -991,8 +991,6 @@ def build_stats(part: ParticipantModel):

game_ended_in_early_surrender=part.gameEndedInEarlySurrender,
game_ended_in_surrender=part.gameEndedInSurrender,
riot_id_name=part.riotIdGameName,
riot_id_tagline=part.riotIdTagline,

assists=part.assists,
champ_level=part.champLevel,
Expand Down

0 comments on commit 7c9c3c5

Please sign in to comment.