lint: use null() to compare to == None for linters to be happy
This commit is contained in:
parent
d15df16e43
commit
b3ef7ac244
6 changed files with 21 additions and 21 deletions
|
|
@ -1316,7 +1316,7 @@ class PullRequestModel(BaseModel):
|
|||
# to either the source repo, the target repo or no repo at all.
|
||||
ChangesetComment.repo_id == pull_request.target_repo.repo_id,
|
||||
ChangesetComment.pull_request == pull_request,
|
||||
ChangesetComment.pull_request_version == None)\
|
||||
ChangesetComment.pull_request_version == null())\
|
||||
.order_by(ChangesetComment.comment_id.asc())
|
||||
|
||||
# TODO: johbo: Find out why this breaks if it is done in a bulk
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue