Skip to content

armgit / mwmbl

Public Imported from GitHub
0

An open source, non-profit web search engine

Remove number of domains in index since we don't have that stat right now

Daoud Clarke560d08920ad0
diff --git a/front-end/src/stats/index.html b/front-end/src/stats/index.html
index bf34584..753417b 100644
--- a/front-end/src/stats/index.html
+++ b/front-end/src/stats/index.html
@@ -59,12 +59,6 @@
<canvas id="num-index-urls-by-day"></canvas>
</div>
</div>
- <div class="info">
- <h1>Number of unique domains in the index: <span id="num-index-domains"></span></h1>
- <div class="wrap">
- <canvas id="num-index-domains-by-day"></canvas>
- </div>
- </div>
<div class="info">
<h1>Number of results in the index: <span id="num-index-results"></span></h1>
<div class="wrap">
diff --git a/front-end/src/stats/stats.js b/front-end/src/stats/stats.js
index 5d9cab5..6f4131d 100644
--- a/front-end/src/stats/stats.js
+++ b/front-end/src/stats/stats.js
@@ -94,10 +94,6 @@ function numberWithCommas(x) {
const numUrlsInIndexSpan = document.getElementById("num-index-urls");
numUrlsInIndexSpan.innerText = numberWithCommas(numUrlsInIndex);
- const numDomainsInIndex = Object.values(stats.domains_in_index_daily)[Object.keys(stats.domains_in_index_daily).length - 1];
- const numDomainsInIndexSpan = document.getElementById("num-index-domains");
- numDomainsInIndexSpan.innerText = numberWithCommas(numDomainsInIndex);
-
const numResultsInIndex = Object.values(stats.results_in_index_daily)[Object.keys(stats.results_in_index_daily).length - 1];
const numResultsInIndexSpan = document.getElementById("num-index-results");
numResultsInIndexSpan.innerText = numberWithCommas(numResultsInIndex);