make combos work when saving new honker
This commit is contained in:
parent
4382a930f9
commit
bf062066c2
2
web.go
2
web.go
|
@ -1217,6 +1217,7 @@ func submithonker(w http.ResponseWriter, r *http.Request) {
|
|||
url := r.FormValue("url")
|
||||
peep := r.FormValue("peep")
|
||||
combos := r.FormValue("combos")
|
||||
combos = " " + strings.TrimSpace(combos) + " "
|
||||
honkerid, _ := strconv.ParseInt(r.FormValue("honkerid"), 10, 0)
|
||||
|
||||
defer combocache.Clear(u.UserID)
|
||||
|
@ -1268,7 +1269,6 @@ func submithonker(w http.ResponseWriter, r *http.Request) {
|
|||
http.Redirect(w, r, "/honkers", http.StatusSeeOther)
|
||||
return
|
||||
}
|
||||
combos = " " + strings.TrimSpace(combos) + " "
|
||||
_, err := stmtUpdateHonker.Exec(name, combos, honkerid, u.UserID)
|
||||
if err != nil {
|
||||
log.Printf("update honker err: %s", err)
|
||||
|
|
Loading…
Reference in New Issue