From 9a9f9ae17839031cb7a8ae07f7eb5644573b9529 Mon Sep 17 00:00:00 2001 From: DJObleezy Date: Sat, 19 Apr 2025 16:57:05 -0700 Subject: [PATCH] Remove acceptance rate display from worker stats Eliminated the acceptance rate section from the `createWorkerCard` function in `workers.js`, including its corresponding HTML in `workers.html`. Updated the `updateSummaryStats` function to remove references to the average acceptance rate. --- static/js/workers.js | 5 ----- templates/workers.html | 11 ----------- 2 files changed, 16 deletions(-) diff --git a/static/js/workers.js b/static/js/workers.js index ff756f4..246e96c 100644 --- a/static/js/workers.js +++ b/static/js/workers.js @@ -389,10 +389,6 @@ function createWorkerCard(worker) {
Earnings:
${worker.earnings.toFixed(8)}
-
-
Accept Rate:
-
${worker.acceptance_rate}%
-
`); @@ -444,7 +440,6 @@ function updateSummaryStats() { $('#total-earnings').text(`${(workerData.total_earnings || 0).toFixed(8)} BTC`); $('#daily-sats').text(`${numberWithCommas(workerData.daily_sats || 0)} SATS`); - $('#avg-acceptance-rate').text(`${(workerData.avg_acceptance_rate || 0).toFixed(2)}%`); } // Initialize mini chart diff --git a/templates/workers.html b/templates/workers.html index ba508e1..36ae8ee 100644 --- a/templates/workers.html +++ b/templates/workers.html @@ -66,17 +66,6 @@
DAILY SATS
- -
-
- {% if avg_acceptance_rate is defined %} - {{ "%.2f"|format(avg_acceptance_rate) }}% - {% else %} - N/A - {% endif %} -
-
ACCEPTANCE
-