From b166fc9100e8c59afdee5cf9e14c9fbbccddf1cd Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Apr 20 2015 10:13:39 +0000 Subject: Remove the spaces around +1/-1 when computing the PR's score --- diff --git a/pagure/lib/model.py b/pagure/lib/model.py index 089f23d..2cc413c 100644 --- a/pagure/lib/model.py +++ b/pagure/lib/model.py @@ -685,11 +685,11 @@ class PullRequest(BASE): positive = set() negative = set() for comment in self.discussion: - for word in [' +1 ', ':thumbsup:']: + for word in ['+1', ':thumbsup:']: if word in comment.comment: positive.add(comment.user_id) break - for word in [' -1 ', ':thumbsdown:']: + for word in ['-1', ':thumbsdown:']: if word in comment.comment: negative.add(comment.user_id) break