From a3d659e10ca28cdb02e55717685a6fd135c86bd6 Mon Sep 17 00:00:00 2001 From: raulolivar Date: Wed, 11 Dec 2024 07:36:22 +0000 Subject: [PATCH] =?UTF-8?q?Commit=20optimitzaci=C3=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- profiles/foot.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/profiles/foot.lua b/profiles/foot.lua index e851532be..41db52ab9 100644 --- a/profiles/foot.lua +++ b/profiles/foot.lua @@ -43,6 +43,7 @@ function fetch_pollution_data(location) return 0 -- Return 0 if the request fails end end + return 0 end function setup() @@ -195,6 +196,9 @@ function process_node(profile, node, result) end local location = node:location() pollution = fetch_pollution_data(location) + if pollution > 50 then + result.barrier = true + end --print(pollution) --result.weight = result.weight + pollution