mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-20 00:35:22 +00:00
fix 500s again try 2
This commit is contained in:
parent
8b9e4ee0d4
commit
a0cc474d1a
1 changed files with 19 additions and 6 deletions
|
|
@ -80,15 +80,28 @@ module Api
|
|||
heartbeats: heartbeats.map do |hb|
|
||||
{
|
||||
id: hb.id,
|
||||
time: hb.time.utc.iso8601,
|
||||
time: Time.at(hb.time).utc.iso8601,
|
||||
project: hb.project,
|
||||
language: hb.language,
|
||||
file: hb.file,
|
||||
branch: hb.branch,
|
||||
category: hb.category,
|
||||
dependencies: hb.dependencies,
|
||||
editor: hb.editor,
|
||||
operating_system: hb.operating_system,
|
||||
entity: hb.entity,
|
||||
language: hb.language,
|
||||
machine: hb.machine,
|
||||
duration: hb.duration,
|
||||
is_debugging: hb.is_debugging
|
||||
operating_system: hb.operating_system,
|
||||
type: hb.type,
|
||||
user_agent: hb.user_agent,
|
||||
line_additions: hb.line_additions,
|
||||
line_deletions: hb.line_deletions,
|
||||
lineno: hb.lineno,
|
||||
lines: hb.lines,
|
||||
cursorpos: hb.cursorpos,
|
||||
project_root_count: hb.project_root_count,
|
||||
is_write: hb.is_write,
|
||||
source_type: hb.source_type,
|
||||
ysws_program: hb.ysws_program,
|
||||
ip_address: hb.ip_address
|
||||
}
|
||||
end,
|
||||
total_heartbeats: heartbeats.count,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue