Lock Stats tab until data has been gathered #27

This commit is contained in:
okvdai
2023-06-13 19:38:32 +02:00
parent e81bd9c49d
commit aa979e6bb4
2 changed files with 12 additions and 1 deletions
@@ -3,6 +3,7 @@ globalize_all_functions
global string pulsePrefix
global bool pulseSuccessBool = true
table withMapName = {}
void function pulsePrefixSet() //Sets our prefix
{
@@ -28,10 +29,12 @@ bool function pulseRequestData(string givenURL, table parameterTable, string tab
} else {
pulseData[tablepath] <- DecodedJSON
}
pulseSuccessBool = false
}
void functionref (HttpRequestFailure) onFailure = void function(HttpRequestFailure failure)
{
pulsePrintt("Something went wrong while getting data.")
pulseSuccessBool = true
}
foreach (key, value in parameterTable)
{