Browse Source

Merge branch 'V20210910' into cb2-without-dataset

pull/342/head
avadesian 3 years ago
parent
commit
ceea376733
4 changed files with 4 additions and 1 deletions
  1. +1
    -0
      models/blockchain.go
  2. +1
    -0
      models/repo.go
  3. +1
    -0
      models/user.go
  4. +1
    -1
      web_src/less/_repository.less

+ 1
- 0
models/blockchain.go View File

@@ -91,6 +91,7 @@ func GetBlockChainUnSuccessCommits() ([]*BlockChain, error) {
blockChains := make([]*BlockChain, 0, 10)
return blockChains, x.
Where("status != ?", BlockChainCommitSuccess).
Limit(100).
Find(&blockChains)
}



+ 1
- 0
models/repo.go View File

@@ -2421,6 +2421,7 @@ func GetBlockChainUnSuccessRepos() ([]*Repository, error) {
repos := make([]*Repository, 0, 10)
return repos, x.
Where("block_chain_status != ?", RepoBlockChainSuccess).
Limit(100).
Find(&repos)
}



+ 1
- 0
models/user.go View File

@@ -2047,6 +2047,7 @@ func GetBlockChainUnSuccessUsers() ([]*User, error) {
users := make([]*User, 0, 10)
err := x.Where("public_key = ''").
Or("private_key = ''").
Limit(100).
Find(&users)
return users, err
}

+ 1
- 1
web_src/less/_repository.less View File

@@ -2685,7 +2685,7 @@ tbody.commit-list {
width: 1127px;
}
th .message-wrapper {
max-width: 510px;
max-width: 400px;
}
}



Loading…
Cancel
Save