diff options
author | Unknwon <u@gogs.io> | 2015-09-09 18:07:10 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-09-09 18:07:10 -0400 |
commit | 9899ea71e86215d563581613bdab922cb4cf0d97 (patch) | |
tree | 11351786b0010a9c9dc1606cbb94a1b9caf7d356 /models/repo.go | |
parent | b75d0378cbbf0523963fd9bc749543244be7392b (diff) | |
download | gitea-9899ea71e86215d563581613bdab922cb4cf0d97.tar.gz gitea-9899ea71e86215d563581613bdab922cb4cf0d97.zip |
#1611 fix bool type in sqlite query
Diffstat (limited to 'models/repo.go')
-rw-r--r-- | models/repo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo.go b/models/repo.go index a22c6e17a7..33451ecc2e 100644 --- a/models/repo.go +++ b/models/repo.go @@ -1231,7 +1231,7 @@ func SearchRepositoryByName(opt SearchOption) (repos []*Repository, err error) { sess.Where("owner_id=?", opt.Uid) } if !opt.Private { - sess.And("is_private=false") + sess.And("is_private=?", false) } sess.And("lower_name like ?", "%"+opt.Keyword+"%").Find(&repos) return repos, err |