Skip to content

Commit

Permalink
[fix] playerRole, channel_id, channel_role field type changed to integer
Browse files Browse the repository at this point in the history
  • Loading branch information
darloof committed Feb 25, 2024
1 parent 77a9375 commit 0fe7cf5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions psycity/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ class Team(BaseModel):
max_bank_loan = models.IntegerField(default=0)
last_bank_action = models.DateTimeField(blank=True, null=True)
today_bought_question = models.IntegerField(default=0)
channel_id = models.CharField(max_length=100)
channel_role = models.CharField(max_length=100, null=False, blank=False, unique=True, primary_key=True)
channel_id = models.IntegerField()
channel_role = models.IntegerField(null=False, blank=False, unique=True, primary_key=True)

def __str__(self):
return self.name
Expand Down Expand Up @@ -381,7 +381,7 @@ class ROLES_CHOICES(models.TextChoices):
SMOOTH_TALKER = 'SmoothTalker', _('Smooth Talker')

name = models.CharField(max_length=15, choices=ROLES_CHOICES.choices)
discord_role_id = models.CharField(max_length=100, null=False, blank=False, unique=True, primary_key=True)
discord_role_id = models.IntegerField(null=False, blank=False, unique=True, primary_key=True)

def __str__(self) -> str:
return f"{self.name}"
Expand Down

0 comments on commit 0fe7cf5

Please sign in to comment.