Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed a bug with the positive comments

  • Loading branch information...
commit f33c7d01a07a9f81f19f62e5c47e08f808c00d81 1 parent 230d6ff
Keenahn Jung authored

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. +1 0  project/pitch/models.py
1  project/pitch/models.py
@@ -47,6 +47,7 @@ def total_votes(self):
47 47 def negative_votes(self):
48 48 return Comment.objects.filter(pitch=self, vote=-1).count()
49 49
  50 + def positive_votes(self):
50 51 return Comment.objects.filter(pitch=self, vote=1).count()
51 52
52 53 def negative_comments(self):

0 comments on commit f33c7d0

Please sign in to comment.
Something went wrong with that request. Please try again.