1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-22 08:42:32 -05:00

#1611 fix bool type in sqlite query

This commit is contained in:
Unknwon 2015-09-09 18:07:10 -04:00
parent b75d0378cb
commit 9899ea71e8

View file

@ -1231,7 +1231,7 @@ func SearchRepositoryByName(opt SearchOption) (repos []*Repository, err error) {
sess.Where("owner_id=?", opt.Uid) sess.Where("owner_id=?", opt.Uid)
} }
if !opt.Private { if !opt.Private {
sess.And("is_private=false") sess.And("is_private=?", false)
} }
sess.And("lower_name like ?", "%"+opt.Keyword+"%").Find(&repos) sess.And("lower_name like ?", "%"+opt.Keyword+"%").Find(&repos)
return repos, err return repos, err