mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	#1611 fix bool type in sqlite query
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user