summaryrefslogtreecommitdiffstats
path: root/models/repo.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-09 18:07:10 -0400
committerUnknwon <u@gogs.io>2015-09-09 18:07:10 -0400
commit9899ea71e86215d563581613bdab922cb4cf0d97 (patch)
tree11351786b0010a9c9dc1606cbb94a1b9caf7d356 /models/repo.go
parentb75d0378cbbf0523963fd9bc749543244be7392b (diff)
downloadgitea-9899ea71e86215d563581613bdab922cb4cf0d97.tar.gz
gitea-9899ea71e86215d563581613bdab922cb4cf0d97.zip
#1611 fix bool type in sqlite query
Diffstat (limited to 'models/repo.go')
-rw-r--r--models/repo.go2
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