Changeset - 87285c5007fb
[Not reviewed]
default
0 1 0
Mads Kiilerich - 10 years ago 2015-10-08 23:27:41
madski@unity3d.com
comments: check for None instead of boolean checks
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
kallithea/model/comment.py
Show inline comments
 
@@ -266,10 +266,10 @@ class ChangesetCommentsModel(BaseModel):
 
            q = q.filter(ChangesetComment.line_no == None)\
 
                .filter(ChangesetComment.f_path == None)
 

	
 
        if revision:
 
        if revision is not None:
 
            q = q.filter(ChangesetComment.revision == revision)\
 
                .filter(ChangesetComment.repo_id == repo_id)
 
        elif pull_request:
 
        elif pull_request is not None:
 
            pull_request = self.__get_pull_request(pull_request)
 
            q = q.filter(ChangesetComment.pull_request == pull_request)
 
        else:
0 comments (0 inline, 0 general)