Syntax fix.

This commit is contained in:
Josh W 2020-02-10 11:01:57 -05:00
parent ce8b9b18d5
commit 70fa77dc9d

View file

@ -97,7 +97,7 @@ def just_played(m) =
log = log(label="just_played") log = log(label="just_played")
if m["req_id"] != "" then if m["req_id"] != "" then
log("Letting server know we played request ID #{m["req_id"]} here: #{url_played}") log('Letting server know we played request ID #{m["req_id"]} here: #{url_played}')
played_song = json_of(compact=true, [("song_request", int_of_string(m["req_id"]))]) played_song = json_of(compact=true, [("song_request", int_of_string(m["req_id"]))])
let (status, _, data) = http.post(headers=api_headers_played, data=played_song, url_played) let (status, _, data) = http.post(headers=api_headers_played, data=played_song, url_played)
let (_, status_code, _) = status let (_, status_code, _) = status