lint: use null() to compare to == None for linters to be happy

This commit is contained in:
RhodeCode Admin 2023-10-13 13:58:26 +02:00
parent d15df16e43
commit b3ef7ac244
6 changed files with 21 additions and 21 deletions

View file

@ -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