List only prints the "data" key for unpublished tickets

This commit is contained in:
Miguel de la Cruz 2020-10-15 16:43:21 +02:00
parent 5d7e67a553
commit d87804b74a

View file

@ -116,7 +116,7 @@ func (c *Campaign) PrintList(publishedOnly, printLinks bool) {
} }
fmt.Println(str) fmt.Println(str)
} else if !publishedOnly { } else if !publishedOnly {
b, _ := json.Marshal(t) b, _ := json.Marshal(t.Data)
fmt.Printf("unpublished: %s\n", color.YellowString(string(b))) fmt.Printf("unpublished: %s\n", color.YellowString(string(b)))
} }
} }