remove debug prints

This commit is contained in:
2023-01-30 23:51:58 -08:00
parent 31bb0d88c7
commit b270d61266
2 changed files with 0 additions and 6 deletions

View File

@@ -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))
} }

View File

@@ -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)