Rename table to StatsSignupCount

This commit is contained in:
Tanner Collin 2020-04-26 03:39:38 +00:00
parent 3d85448b0e
commit d7a529dd94
2 changed files with 2 additions and 2 deletions

View File

@ -133,7 +133,7 @@ class StatsMemberCount(models.Model):
member_count = models.IntegerField()
green_count = models.IntegerField()
class StatsMemberSignup(models.Model):
class StatsSignupCount(models.Model):
month = models.DateField()
signup_count = models.IntegerField()

View File

@ -14,7 +14,7 @@ with open('old_counts.csv', newline='') as csvfile:
for row in reader:
print('Adding', row['month'], row['signup_count'])
models.StatsMemberSignup.objects.update_or_create(
models.StatsSignupCount.objects.update_or_create(
month=row['month']+'-01',
defaults=dict(signup_count=row['signup_count']),
)