This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
Gitlink
/
forgeplus
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
16
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
修改hash_commit的json
tags/v1
sylor_huang@126.com
6 years ago
parent
657b1f36d5
commit
9498c438cd
1 changed files
with
5 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-1
app/views/repositories/commits.json.jbuilder
+ 5
- 1
app/views/repositories/commits.json.jbuilder
View File
@@ -1,4 +1,8 @@
unless @hash_commit[:status].present? #如果有状态值,则表示报错了
Rails.logger.info("#######_______@hash_commit______############{@hash_commit}")
if @hash_commit[:status].present? #如果有状态值,则表示报错了
json.total_count 0
json.commits []
else
json.total_count @hash_commit[:total_count]
json.commits do
json.array! @hash_commit[:body] do |commit|
Write
Preview
Loading…
Cancel
Save