1
0
Fork 0

Use %argsof instead of explicitly listing json options.

liquidsoap-2.2
Icedream 2022-09-11 15:42:30 +02:00
parent 566f844992
commit ce9a344b8b
Signed by: icedream
GPG Key ID: 468BBEEBB9EC6AEA
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@
metadata_api_hostname = getenv(default="icedream-bitwave", "METADATA_API_HOSTNAME")
def http_export_meta(~compact=false, ~json5=false, m) =
def http_export_meta(%argsof(json.stringify), m) =
j = json()
list.iter((fun (v) -> j.add(fst(v), (snd(v):string))), m)
json.stringify(%argsof(json.stringify), j)