Mercurial > kallithea
diff rhodecode/model/comment.py @ 1681:1bf03daafaf0 beta
fixes inline comments double entries
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 13 Nov 2011 18:19:31 +0200 |
parents | 7276b170ce8b |
children | f23828b00b21 |
line wrap: on
line diff
--- a/rhodecode/model/comment.py Sun Nov 13 18:05:44 2011 +0200 +++ b/rhodecode/model/comment.py Sun Nov 13 18:19:31 2011 +0200 @@ -84,7 +84,9 @@ 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))