260703_002852

This commit is contained in:
Maciej J. Bowszys 2026-07-03 00:28:52 +02:00
parent 44a9d46d41
commit dbf44c4071

View File

@ -250,13 +250,13 @@ func hdlr_film_parseMsg(resp http.ResponseWriter, req *http.Request){
fmt.Println(t_url_noRed)
t_film, _ := fetch_filmInfo(t_url_noRed)
db_film[string(len(db_film)-1)] = t_film
db_film[fmt.Sprintf("%d",len(db_film)-1)] = t_film
t_json, _ := json.MarshalIndent(db_film, "", " ")
fmt.Printf("%+v\n", string(t_json))
fmt.Println("/film/view/?id="+string(len(db_film)-1))
fmt.Println("/film/view/?id="+fmt.Sprintf("%d",len(db_film)-1))
http.Redirect(resp, req, "/film/view/?id="+string(len(db_film)-1), http.StatusFound)
http.Redirect(resp, req, "/film/view/?id="+fmt.Sprintf("%d",len(db_film)-1), http.StatusFound)
}
func main(){