diff --git a/cmd/increases.go b/cmd/increases.go index 32f3f28..537be20 100644 --- a/cmd/increases.go +++ b/cmd/increases.go @@ -80,6 +80,11 @@ func runIncreasesE(cmd *cobra.Command, args []string) error { res = prettyJSON.String() } + yr, isoWeek := startDate.ISOWeek() + fmt.Printf("Start date: %s\tWeek: %d (%d)\n", + startDate.Format("2006-01-02"), + isoWeek, + yr) fmt.Println(res) return nil diff --git a/pkg/client.go b/pkg/client.go index 7573b27..459f123 100644 --- a/pkg/client.go +++ b/pkg/client.go @@ -90,7 +90,7 @@ func (c *Client) GetBuildIncreases(patStr string, owner string, startDate time.T q.Set("owner", owner) } q.Add("startDate", startDate.Format("2006-01-02")) - log.Printf("Date: %s", startDate.Format("2006-01-02")) + u.RawQuery = q.Encode() req, err := http.NewRequest(http.MethodGet, u.String(), nil)