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
修复:无法正常显示response_content
pull/342/head
yystopf
3 years ago
parent
b4672929dc
commit
91dfc94a7b
2 changed files
with
3 additions
and
3 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/views/api/v1/projects/webhooks/hooktasks.json.jbuilder
+2
-2
app/views/projects/webhooks/tasks.json.jbuilder
+ 1
- 1
app/views/api/v1/projects/webhooks/hooktasks.json.jbuilder
View File
@@ -1,6 +1,6 @@
json.total_count @hooktasks.total_count
json.total_count @hooktasks.total_count
json.hooktasks @hooktasks.each do |task|
json.hooktasks @hooktasks.each do |task|
json.(task, :id, :event_type, :type, :uuid, :is_succeed, :is_delivered, :payload_content, :request_content)
json.(task, :id, :event_type, :type, :uuid, :is_succeed, :is_delivered, :payload_content, :request_content)
json.response_content task.response_content
_json
json.response_content task.response_content
json.delivered_time Time.at(task.delivered*10**-9).strftime("%Y-%m-%d %H:%M:%S")
json.delivered_time Time.at(task.delivered*10**-9).strftime("%Y-%m-%d %H:%M:%S")
end
end
+ 2
- 2
app/views/projects/webhooks/tasks.json.jbuilder
View File
@@ -1,6 +1,6 @@
json.total_count @tasks.total_count
json.total_count @tasks.total_count
json.tasks @tasks.each do |task|
json.tasks @tasks.each do |task|
json.(task, :id, :event_type, :type, :uuid, :is_succeed, :is_delivered, :payload_content, :request_content)
json.(task, :id, :event_type, :type, :uuid, :is_succeed, :is_delivered, :payload_content, :request_content)
json.response_content task.response_content
_json
json.delivered_time Time.at(task.delivered*10**-9).strftime("%Y-%m-%d %H:%M:%S")
json.response_content task.response_content
json.delivered_time
task.delivered.present? ?
Time.at(task.delivered*10**-9).strftime("%Y-%m-%d %H:%M:%S")
: nil
end
end
Write
Preview
Loading…
Cancel
Save