Add script to import old card scan counts

This commit is contained in:
2020-06-04 02:24:00 +00:00
parent ea3f1fc6e4
commit bdbf21f75a
3 changed files with 48 additions and 0 deletions

View File

@@ -141,6 +141,10 @@ class StatsSignupCount(models.Model):
retain_count = models.IntegerField(default=0)
vetted_count = models.IntegerField(default=0)
class StatsSpaceActivity(models.Model):
date = models.DateField(default=today_alberta_tz)
card_scans = models.IntegerField()
class HistoryIndex(models.Model):
content_type = models.ForeignKey(ContentType, null=True, on_delete=models.SET_NULL)
object_id = models.PositiveIntegerField()