fixed small thing

This commit is contained in:
Sören Oesterwind 2022-10-13 18:01:06 +02:00
parent 22edd2ea9c
commit 92a6b4b1d3

View File

@ -311,6 +311,7 @@ func handleRemaining(w http.ResponseWriter, r *http.Request) {
var cnt, err = strconv.Atoi(r.URL.Query().Get("id")) // Retrieve the id, first convert it to an int var cnt, err = strconv.Atoi(r.URL.Query().Get("id")) // Retrieve the id, first convert it to an int
if err != nil { if err != nil {
fmt.Fprintf(w, "{\"status\":\"fail\", \"reason\":\"invalid id\"}") fmt.Fprintf(w, "{\"status\":\"fail\", \"reason\":\"invalid id\"}")
return
} }
fmt.Println(cnt) fmt.Println(cnt)
plyB := playbacks[cnt] plyB := playbacks[cnt]