fix issue with exceeding sqlite params

This commit is contained in:
Brad Rydzewski 2015-10-16 15:02:50 -07:00
parent fa8c657005
commit a6fa326169
3 changed files with 24 additions and 3 deletions

View file

@ -23,7 +23,9 @@ publish:
when:
repo: drone/drone
s3:
# sync the documentation with the s3 bucket
s3_sync:
acl: public-read
region: us-east-1
bucket: readme.drone.io
@ -31,7 +33,22 @@ publish:
secret_key: $$AWS_SECRET
source: /drone/tmp/
target: /
recursive: true
exclude: "*.svg"
when:
repo: drone/drone
branch: "0.4.0"
s3_sync:
acl: public-read
region: us-east-1
bucket: readme.drone.io
access_key: $$AWS_KEY
secret_key: $$AWS_SECRET
source: /drone/tmp/
target: /
exclude: "*"
include: "**.svg"
content_type: "image/svg+xml"
when:
repo: drone/drone
branch: "0.4.0"

View file

@ -63,6 +63,10 @@ func GetRepoList(db meddler.DB, user *User) ([]*Repo, error) {
func GetRepoListOf(db meddler.DB, listof []*RepoLite) ([]*Repo, error) {
var repos = []*Repo{}
var size = len(listof)
if size > 999 {
size = 999
listof = listof[:999]
}
var qs = make([]string, size, size)
var in = make([]interface{}, size, size)
for i, repo := range listof {

View file

@ -13,7 +13,7 @@
.tt-selectable:hover,
.tt-cursor
background:#f4f4f4;
background:#eff1f5;
.tt-selectable
padding: 1rem 0.75rem;