aboutsummaryrefslogtreecommitdiff
path: root/rhodecode/model/comment.py
diff options
context:
space:
mode:
authorMarcin Kuzminski <marcin@python-works.com>2011-11-13 18:19:31 +0200
committerMarcin Kuzminski <marcin@python-works.com>2011-11-13 18:19:31 +0200
commit9e2d676dede034906eebdc4bcdaad4c702054b5a (patch)
tree4ca45cc06296f5a551a8180f9bb7da481d747768 /rhodecode/model/comment.py
parente2c865a4e857da1979e13d5fc7156127e988393b (diff)
fixes inline comments double entries
--HG-- branch : beta
Diffstat (limited to 'rhodecode/model/comment.py')
-rw-r--r--rhodecode/model/comment.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/rhodecode/model/comment.py b/rhodecode/model/comment.py
index 7c92e0fa..56357f50 100644
--- a/rhodecode/model/comment.py
+++ b/rhodecode/model/comment.py
@@ -84,7 +84,9 @@ class ChangesetCommentsModel(BaseModel):
def get_inline_comments(self, repo_id, revision):
comments = self.sa.query(ChangesetComment)\
.filter(ChangesetComment.repo_id == repo_id)\
- .filter(ChangesetComment.revision == revision).all()
+ .filter(ChangesetComment.revision == revision)\
+ .filter(ChangesetComment.line_no != None)\
+ .filter(ChangesetComment.f_path != None).all()
paths = defaultdict(lambda:defaultdict(list))