This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
Repositories
Datasets
Forum
实训
竞赛
大数据
应用
Register
Sign In
OpenI
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
limit req count
pull/340/head
lewis
3 years ago
parent
1700ccbb67
commit
a471474c15
3 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
models/blockchain.go
+1
-0
models/repo.go
+1
-0
models/user.go
+ 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
}
Write
Preview
Loading…
Cancel
Save