From 455ddcbd626a328df8c841f3ad4152e59dd2a099 Mon Sep 17 00:00:00 2001 From: samaradel Date: Wed, 29 Jun 2022 12:01:55 +0200 Subject: [PATCH] Update grid api --- src/components/marketing/sections/cta-sections/Map.vue | 2 +- src/components/marketing/sections/cta-sections/StateMap.vue | 4 ++-- .../marketing/sections/stats-sections/SimpleInCard.vue | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/marketing/sections/cta-sections/Map.vue b/src/components/marketing/sections/cta-sections/Map.vue index b0447adea..45b380d5e 100644 --- a/src/components/marketing/sections/cta-sections/Map.vue +++ b/src/components/marketing/sections/cta-sections/Map.vue @@ -134,7 +134,7 @@ export default { // "https://explorer.threefold.io/api/farms?network=all" // ); const results = await axios.get( - "https://explorer.threefold.io/api/stats" + "https://explorer.threefold.io/api/stats?grid=grid3&network=all" ); // let farms = getFarms.data.length; let nodes = results.data.onlinenodes; diff --git a/src/components/marketing/sections/cta-sections/StateMap.vue b/src/components/marketing/sections/cta-sections/StateMap.vue index a3b1a8fec..dac567504 100644 --- a/src/components/marketing/sections/cta-sections/StateMap.vue +++ b/src/components/marketing/sections/cta-sections/StateMap.vue @@ -213,10 +213,10 @@ export default { async mounted() { try { const getFarms = await axios.get( - "https://explorer.threefold.io/api/farms?grid=all&network=all" + "https://explorer.threefold.io/api/farms?grid=grid3&network=all" ); const results = await axios.get( - "https://explorer.threefold.io/api/stats" + "https://explorer.threefold.io/api/stats?grid=grid3&network=all" ); let farms = getFarms.data.length; let hru = (results.data.hru / 1000).toFixed(); diff --git a/src/components/marketing/sections/stats-sections/SimpleInCard.vue b/src/components/marketing/sections/stats-sections/SimpleInCard.vue index bf98c3b9b..32b1fcef0 100644 --- a/src/components/marketing/sections/stats-sections/SimpleInCard.vue +++ b/src/components/marketing/sections/stats-sections/SimpleInCard.vue @@ -238,7 +238,7 @@ export default { // "https://explorer.threefold.io/api/farms?network=all" // ); const results = await axios.get( - "https://explorer.threefold.io/api/stats" + "https://explorer.threefold.io/api/stats?grid=grid3&network=all" ); // let farms = getFarms.data.length; let nodes = results.data.onlinenodes;