Skip to content

Commit

Permalink
feat: add line additions and deletions fields to Heartbeat model
Browse files Browse the repository at this point in the history
  • Loading branch information
taciturnaxolotl committed Oct 16, 2024
1 parent 1a130c6 commit 0d36c69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions models/heartbeat.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ type Heartbeat struct {
Language string `json:"language" gorm:"index:idx_language"`
IsWrite bool `json:"is_write"`
Lines uint64 `json:"lines"`
LineAdditions uint32 `json:"line_additions"`
LineDeletions uint32 `json:"line_deletions"`
Editor string `json:"editor" gorm:"index:idx_editor" hash:"ignore"` // ignored because editor might be parsed differently by wakatime
OperatingSystem string `json:"operating_system" gorm:"index:idx_operating_system" hash:"ignore"` // ignored because os might be parsed differently by wakatime
Machine string `json:"machine" gorm:"index:idx_machine" hash:"ignore"` // ignored because wakatime api doesn't return machines currently
Expand Down

0 comments on commit 0d36c69

Please sign in to comment.