From d87804b74a00f44db1396644a6c4c0c0f88940b8 Mon Sep 17 00:00:00 2001 From: Miguel de la Cruz Date: Thu, 15 Oct 2020 16:43:21 +0200 Subject: [PATCH] List only prints the "data" key for unpublished tickets --- model/campaign.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/campaign.go b/model/campaign.go index 737bb35..4341734 100644 --- a/model/campaign.go +++ b/model/campaign.go @@ -116,7 +116,7 @@ func (c *Campaign) PrintList(publishedOnly, printLinks bool) { } fmt.Println(str) } else if !publishedOnly { - b, _ := json.Marshal(t) + b, _ := json.Marshal(t.Data) fmt.Printf("unpublished: %s\n", color.YellowString(string(b))) } }