From 1fbb2bde6c0b18e14418c4c68386b02c5450ec69 Mon Sep 17 00:00:00 2001 From: a Date: Wed, 3 May 2023 00:54:08 -0500 Subject: [PATCH] fix seconds --- cli/cli.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cli/cli.go b/cli/cli.go index 9d29b76..62beb3f 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -9,6 +9,7 @@ import ( "net/http" "net/url" "os" + "strconv" "strings" ) @@ -46,6 +47,7 @@ func (c *Profile) Run(ctx Context) error { q := req.URL.Query() if c.Time > 0 { + q.Add("seconds", strconv.Itoa(c.Time)) } req.URL.RawQuery = q.Encode()