Created
November 5, 2018 12:35
-
-
Save mangelajo/b4c3bd5f43c88f653a41fcf5fd5f6eb6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mbp-ajo:~ ajo$ cd ~/go/src/github.com/mangelajo/track | |
mbp-ajo:track ajo$ git diff | |
diff --git a/cmd/trelloListCards.go b/cmd/trelloListCards.go | |
index 7ee75c9..79dcd61 100644 | |
--- a/cmd/trelloListCards.go | |
+++ b/cmd/trelloListCards.go | |
@@ -20,6 +20,7 @@ import ( | |
"fmt" | |
"strings" | |
"os" | |
+ "time" | |
) | |
// cardListCmd represents the cardList command | |
@@ -57,6 +58,8 @@ func trelloListCards(cmd *cobra.Command, args []string) { | |
me, err := trelloClient.GetMember("me", trello.Defaults()) | |
checkError(err) | |
+ | |
+ | |
board:= FindBoard(trelloClient, args[0]) | |
cfields, err := board.GetCustomFields(trello.Defaults()) | |
@@ -121,6 +124,7 @@ func trelloListCards(cmd *cobra.Command, args []string) { | |
if listID == nil || currentList == *listID { | |
fmt.Printf(" - %s\t%v\n", card.ShortUrl, card.Name) | |
+ fmt.Printf("%v d", int(time.Since(*card.DateLastActivity).Hours()/24.0)) | |
} | |
} | |
diff --git a/pkg/bugzilla/cgiapi.go b/pkg/bugzilla/cgiapi.go | |
index 4b11227..6022ca1 100644 | |
--- a/pkg/bugzilla/cgiapi.go | |
+++ b/pkg/bugzilla/cgiapi.go | |
@@ -228,6 +228,8 @@ func (client *bugzillaCGIClient) bugList(query *BugListQuery) ([]Bug, error) { | |
url, referer := setupQuery(u, query) | |
+ //fmt.Printf("QUERY:\n%v\n%s\n",query, url); | |
+ | |
//url = https://bugzilla.mozilla.org/buglist.cgi?format=simple&limit=4&query_format=advanced&offset=400&order=changeddate%20DESC | |
req, err := newHTTPRequest("GET", url , nil) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment