mirror of
https://github.com/Retropex/custom-ocean.xyz-dashboard.git
synced 2025-05-12 11:10:44 +02:00
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.
This commit is contained in:
parent
4f52697185
commit
9a9f9ae178
@ -389,10 +389,6 @@ function createWorkerCard(worker) {
|
|||||||
<div class="worker-stats-label">Earnings:</div>
|
<div class="worker-stats-label">Earnings:</div>
|
||||||
<div class="green-glow">${worker.earnings.toFixed(8)}</div>
|
<div class="green-glow">${worker.earnings.toFixed(8)}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="worker-stats-row">
|
|
||||||
<div class="worker-stats-label">Accept Rate:</div>
|
|
||||||
<div class="white-glow">${worker.acceptance_rate}%</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
`);
|
`);
|
||||||
|
|
||||||
@ -444,7 +440,6 @@ function updateSummaryStats() {
|
|||||||
|
|
||||||
$('#total-earnings').text(`${(workerData.total_earnings || 0).toFixed(8)} BTC`);
|
$('#total-earnings').text(`${(workerData.total_earnings || 0).toFixed(8)} BTC`);
|
||||||
$('#daily-sats').text(`${numberWithCommas(workerData.daily_sats || 0)} SATS`);
|
$('#daily-sats').text(`${numberWithCommas(workerData.daily_sats || 0)} SATS`);
|
||||||
$('#avg-acceptance-rate').text(`${(workerData.avg_acceptance_rate || 0).toFixed(2)}%`);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialize mini chart
|
// Initialize mini chart
|
||||||
|
@ -66,17 +66,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="summary-stat-label">DAILY SATS</div>
|
<div class="summary-stat-label">DAILY SATS</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="summary-stat">
|
|
||||||
<div class="summary-stat-value white-glow" id="avg-acceptance-rate">
|
|
||||||
{% if avg_acceptance_rate is defined %}
|
|
||||||
{{ "%.2f"|format(avg_acceptance_rate) }}%
|
|
||||||
{% else %}
|
|
||||||
N/A
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
<div class="summary-stat-label">ACCEPTANCE</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user