Skip to content

Commit

Permalink
uncommented contributor stats
Browse files Browse the repository at this point in the history
  • Loading branch information
krrish-sehgal committed Nov 10, 2024
1 parent a21a59d commit c28fb59
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
Empty file modified setup.sh
100644 → 100755
Empty file.
1 change: 1 addition & 0 deletions website/class_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
CompanyAdmin,
Contribution,
Contributor,
ContributorStats,
Domain,
Hunt,
HuntPrize,
Expand Down
18 changes: 9 additions & 9 deletions website/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit c28fb59

Please sign in to comment.