Skip to content

Commit

Permalink
Complete
Browse files Browse the repository at this point in the history
  • Loading branch information
tomoish committed Feb 3, 2024
1 parent 0d35472 commit eb5bec5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func createHandler(w http.ResponseWriter, r *http.Request) {

//対象のキャラの画像を取得
img := funcs.DispatchPictureBasedOnProfession(profession)

// コミットカレンダー画像の生成
filePath := fmt.Sprintf("characterImages/%s", img)

Expand All @@ -162,8 +162,6 @@ func createHandler(w http.ResponseWriter, r *http.Request) {
// キャラクター画像の生成
funcs.CreateCharacterImg(filePath, "images/gauge.png", total, level)



_, dailyCommits, maxCommits, err := funcs.GetCommitHistory(username)
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
Expand Down Expand Up @@ -202,7 +200,7 @@ func main() {
// http.HandleFunc("/background", getBackgroundHandler)
http.HandleFunc("/create", createHandler)
fmt.Println("Hello, World!")
err := http.ListenAndServe(":8000", nil)
err := http.ListenAndServe(":8080", nil)
if err != nil {
log.Fatalf("HTTP server failed: %v", err)
}
Expand Down

0 comments on commit eb5bec5

Please sign in to comment.