all repos — honk @ 3014bef4ee6e15cc64f38f83d29a8b950d9ce160

my fork of honk

make combos work when saving new honker
Ted Unangst tedu@tedunangst.com
Tue, 08 Oct 2019 02:21:12 -0400
commit

3014bef4ee6e15cc64f38f83d29a8b950d9ce160

parent

62be86f8cb9f03011c1e38ace9f589695b3479af

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M web.goweb.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)