diff --git a/setup.sh b/setup.sh old mode 100644 new mode 100755 diff --git a/website/class_views.py b/website/class_views.py index db9a69305..2243f01b9 100644 --- a/website/class_views.py +++ b/website/class_views.py @@ -73,6 +73,7 @@ CompanyAdmin, Contribution, Contributor, + ContributorStats, Domain, Hunt, HuntPrize, diff --git a/website/models.py b/website/models.py index 40ac0e2be..839cffaa7 100644 --- a/website/models.py +++ b/website/models.py @@ -761,15 +761,15 @@ def get_top_contributors(self, limit=30): return self.contributors.order_by("-contributions")[:limit] -# class ContributorStats(models.Model): -# username = models.CharField(max_length=255, unique=True) -# commits = models.IntegerField(default=0) -# issues_opened = models.IntegerField(default=0) -# issues_closed = models.IntegerField(default=0) -# prs = models.IntegerField(default=0) -# comments = models.IntegerField(default=0) -# assigned_issues = models.IntegerField(default=0) -# created = models.DateTimeField(auto_now_add=True) +class ContributorStats(models.Model): + username = models.CharField(max_length=255, unique=True) + commits = models.IntegerField(default=0) + issues_opened = models.IntegerField(default=0) + issues_closed = models.IntegerField(default=0) + prs = models.IntegerField(default=0) + comments = models.IntegerField(default=0) + assigned_issues = models.IntegerField(default=0) + created = models.DateTimeField(auto_now_add=True) class Contribution(models.Model):