瀏覽代碼

#1611 fix bool type in sqlite query

tags/v0.9.99
Unknwon 8 年之前
父節點
當前提交
9899ea71e8
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      models/repo.go

+ 1
- 1
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

Loading…
取消
儲存