diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-08-11 13:59:08 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-08-11 13:59:08 +0200 |
| commit | 1da94931188c35c06dd032aadce2799fc13db1dd (patch) | |
| tree | 1298220b6ff67cb30178630e13c7f11a64265569 /web/views.go | |
| parent | d4e4616ba49f3a18a52e3197e1c77639a93b0330 (diff) | |
feat: Add Strava import progress
Diffstat (limited to 'web/views.go')
| -rw-r--r-- | web/views.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/web/views.go b/web/views.go index f6e84d5..a644d1e 100644 --- a/web/views.go +++ b/web/views.go @@ -180,6 +180,13 @@ type SyncPageData struct { HasAuth bool } +type SyncProgress struct { + Total int `json:"total"` + Completed int `json:"completed"` + Imported int `json:"imported"` + Skipped int `json:"skipped"` +} + func formatRideDate(value time.Time) string { return value.Local().Format("02 Jan 2006, 15:04") } |