fix seconds
ci/woodpecker/tag/woodpecker Pipeline was successful Details
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
a 2023-05-03 00:54:08 -05:00
parent 4df03267b2
commit 1fbb2bde6c
1 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,7 @@ import (
"net/http" "net/http"
"net/url" "net/url"
"os" "os"
"strconv"
"strings" "strings"
) )
@ -46,6 +47,7 @@ func (c *Profile) Run(ctx Context) error {
q := req.URL.Query() q := req.URL.Query()
if c.Time > 0 { if c.Time > 0 {
q.Add("seconds", strconv.Itoa(c.Time))
} }
req.URL.RawQuery = q.Encode() req.URL.RawQuery = q.Encode()