Fix map piecharts

This commit is contained in:
okvdai
2023-06-08 12:56:38 +02:00
parent 2a15573826
commit b2cb958673
@@ -3,6 +3,7 @@ globalize_all_functions
global string pulsePrefix
table withMapName = {}
void function pulsePrefixSet() //Sets our prefix
{
pulsePrefix = format("\x1b[38;2;%i;%i;%im[PULSE]\x1b[0m", 255, 178, 102)
@@ -23,7 +24,6 @@ bool function pulseRequestData(string givenURL, table parameterTable, string tab
if ("map" in parameterTable)
{
string mapName = expect string(parameterTable["map"])
table withMapName = {}
withMapName[mapName] <- DecodedJSON
pulseData[tablepath] <- withMapName
} else {
@@ -37,6 +37,8 @@ bool function pulseRequestData(string givenURL, table parameterTable, string tab
foreach (key, value in parameterTable)
{
requestTable[string(key)] <- [string(value)]
pulsePrintt(string(key))
pulsePrintt(string(value))
}
return NSHttpGet(givenURL, requestTable, onSuccess, onFailure)
}