make combos work when saving new honker
Ted Unangst tedu@tedunangst.com
Tue, 08 Oct 2019 02:21:12 -0400
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
web.go
→
web.go
@@ -1217,6 +1217,7 @@ name := r.FormValue("name")
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 @@
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)