mirror of
https://github.com/taigrr/gico.git
synced 2026-04-02 03:09:07 -07:00
remove debug prints
This commit is contained in:
@@ -29,5 +29,4 @@ func main() {
|
|||||||
fmt.Println()
|
fmt.Println()
|
||||||
fmt.Println("year:")
|
fmt.Println("year:")
|
||||||
fmt.Println(term.GetYearUnicode(freq))
|
fmt.Println(term.GetYearUnicode(freq))
|
||||||
fmt.Println((freq))
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
@@ -18,7 +17,6 @@ func main() {
|
|||||||
r := mux.NewRouter()
|
r := mux.NewRouter()
|
||||||
r.HandleFunc("/weekly.svg", func(w http.ResponseWriter, r *http.Request) {
|
r.HandleFunc("/weekly.svg", func(w http.ResponseWriter, r *http.Request) {
|
||||||
author := r.URL.Query().Get("author")
|
author := r.URL.Query().Get("author")
|
||||||
fmt.Println(author)
|
|
||||||
w.Header().Add("Content-Type", "text/html")
|
w.Header().Add("Content-Type", "text/html")
|
||||||
repoPaths, err := commits.GetMRRepos()
|
repoPaths, err := commits.GetMRRepos()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@@ -28,7 +26,6 @@ func main() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
fmt.Println(week)
|
|
||||||
svg := svg.GetWeekSVG(week)
|
svg := svg.GetWeekSVG(week)
|
||||||
svg.WriteTo(w)
|
svg.WriteTo(w)
|
||||||
})
|
})
|
||||||
@@ -36,7 +33,6 @@ func main() {
|
|||||||
year := time.Now().Year()
|
year := time.Now().Year()
|
||||||
yst := r.URL.Query().Get("year")
|
yst := r.URL.Query().Get("year")
|
||||||
author := r.URL.Query().Get("author")
|
author := r.URL.Query().Get("author")
|
||||||
fmt.Println(author)
|
|
||||||
y, err := strconv.Atoi(yst)
|
y, err := strconv.Atoi(yst)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
year = y
|
year = y
|
||||||
@@ -49,7 +45,6 @@ func main() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
fmt.Println(freq)
|
|
||||||
svg := svg.GetYearSVG(freq)
|
svg := svg.GetYearSVG(freq)
|
||||||
w.Header().Add("Content-Type", "text/html")
|
w.Header().Add("Content-Type", "text/html")
|
||||||
svg.WriteTo(w)
|
svg.WriteTo(w)
|
||||||
|
|||||||
Reference in New Issue
Block a user