diff --git a/moira_db.go b/moira_db.go index d9cf0bd..cdae39e 100644 --- a/moira_db.go +++ b/moira_db.go @@ -252,7 +252,7 @@ func hdlr_film_parseMsg(resp http.ResponseWriter, req *http.Request){ db_film[string(len(db_film)-1)] = t_film - t_json, _ := json.MarshalIndent(t_film, "", " ") + t_json, _ := json.MarshalIndent(db_film, "", " ") fmt.Printf("%+v\n", string(t_json)) http.Redirect(resp, req, "/film/view/?id="+string(len(db_film)-1), http.StatusFound)