Skip to content
Snippets Groups Projects
Verified Commit d593fa00 authored by Tóth Miklós Tibor's avatar Tóth Miklós Tibor :shrug:
Browse files

Remove debug

parent 66453ad3
No related branches found
No related tags found
1 merge request!25Add API endpoints and middleware for user and product manipulation
...@@ -2,7 +2,6 @@ package api ...@@ -2,7 +2,6 @@ package api
import ( import (
"encoding/json" "encoding/json"
"fmt"
"git.sch.bme.hu/disappointment-industries/becskasszasch/db" "git.sch.bme.hu/disappointment-industries/becskasszasch/db"
"git.sch.bme.hu/disappointment-industries/becskasszasch/helpers" "git.sch.bme.hu/disappointment-industries/becskasszasch/helpers"
"git.sch.bme.hu/disappointment-industries/becskasszasch/homepage" "git.sch.bme.hu/disappointment-industries/becskasszasch/homepage"
...@@ -153,16 +152,6 @@ func BuyInPult(w http.ResponseWriter, r *http.Request) { ...@@ -153,16 +152,6 @@ func BuyInPult(w http.ResponseWriter, r *http.Request) {
return return
} }
for key, values := range r.PostForm {
fmt.Println(key, values)
for _, value := range values {
fmt.Printf("Form field %s has value %s\n", key, value)
}
}
asd := r.Form["amount"]
fmt.Println(asd)
for _, productInPult := range boughtInPult.ProductsInPult { for _, productInPult := range boughtInPult.ProductsInPult {
spend := db.Spend{ spend := db.Spend{
User: boughtInPult.User, User: boughtInPult.User,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment