From 66e766563f184d895437c14ca8a21614683c98d3 Mon Sep 17 00:00:00 2001 From: fred Date: Sat, 2 Sep 2023 00:43:20 +0200 Subject: [PATCH] Umap are not fully loaded when captured... Could do better --- API/UPLANET.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/API/UPLANET.sh b/API/UPLANET.sh index fdb67ff5a..909064235 100755 --- a/API/UPLANET.sh +++ b/API/UPLANET.sh @@ -48,6 +48,7 @@ PLAYER=${THAT} [[ ${AND} == "lat" ]] && SALT=${THIS} || SALT=${AND} +[[ ${SALT} == "0" ]] && SALT="0.00" input_number=${SALT} if [[ ! $input_number =~ ^[0-9]{1,3}\.[0-9]*$ ]]; then (echo "$HTTPCORS ERROR - BAD LAT $LAT" | nc -l -p ${PORT} -q 1 > /dev/null 2>&1 &) && echo "(☓‿‿☓) Execution time was "`expr $(date +%s) - $start` seconds. && exit 0 @@ -57,6 +58,7 @@ fi [[ ${APPNAME} == "lon" ]] && PEPPER=${WHAT} || PEPPER=${APPNAME} +[[ ${PEPPER} == "0" ]] && PEPPER="0.00" input_number=${PEPPER} if [[ ! $input_number =~ ^[0-9]{1,3}\.[0-9]*$ ]]; then (echo "$HTTPCORS ERROR - BAD LON $LON" | nc -l -p ${PORT} -q 1 > /dev/null 2>&1 &) && echo "(☓‿‿☓) Execution time was "`expr $(date +%s) - $start` seconds. && exit 0