Skip to content

Commit 880f9ca

Browse files
committed
only count users as voting when they actually vote
1 parent 8e08e07 commit 880f9ca

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

gitconsensus/repository.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,14 +142,12 @@ def __init__(self, repository, number):
142142

143143
if content == '+1':
144144
self.yes.append(user['login'])
145+
self.users.append(user['login'])
145146
elif content == '-1':
146147
self.no.append(user['login'])
148+
self.users.append(user['login'])
147149
elif content == 'confused':
148150
self.abstain.append(user['login'])
149-
else:
150-
continue
151-
152-
if user['login'] not in self.users:
153151
self.users.append(user['login'])
154152

155153
def hoursSinceLastCommit(self):

0 commit comments

Comments
 (0)