sithuWiki commited on
Commit
40bdc33
·
verified ·
1 Parent(s): cd2e2b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -8
app.py CHANGED
@@ -224,14 +224,10 @@ def create_miner_info(
224
  <p style="font-size: 1.2em; margin: 10px 0; color: #ffffff;"><strong style="color: #ffffff;">Hashrate:{machine_hashrate:.2f} TH/s</strong></p>
225
  <p style="font-size: 1.2em; margin: 10px 0; color: #ffffff;"><strong style="color: #ffffff;">Power:{machine_power:.1f} W</strong></p>
226
  <p style="font-size: 1.2em; margin: 10px 0; color: #ffffff;"><strong style="color: #ffffff;">Efficiency:{machine_efficiency:.2f} W/TH</strong></p>
227
- # <p style="margin:4px 0;"><strong>Hashrate:</strong> {machine_hashrate:.2f} TH/s</p>
228
- # <p style="margin:4px 0;"><strong>Power:</strong> {machine_power:.1f} W</p>
229
- # <p style="margin:4px 0;"><strong>Efficiency:</strong> {machine_efficiency:.2f} W/TH</p>
230
  </div>
231
  <div style="color:#f5f5f5;">
232
  <p style="margin:4px 0;">
233
- <strong style="color: #ffffff;">Price (as of {pred_date.date()}):</strong>
234
- ${price:,.2f}
235
  <span style="
236
  background:{badge_color};
237
  color:#ffffff;
@@ -246,9 +242,6 @@ def create_miner_info(
246
  <p style="font-size: 1.2em; margin: 10px 0; color: #ffffff;"><strong style="color: #ffffff;">Electricity rate:{elec_rate:.4f} USD/kWh</strong></p>
247
  <p style="font-size: 1.2em; margin: 10px 0; color: #ffffff;"><strong style="color: #ffffff;">Cost bucket:{region_bucket}</strong></p>
248
  <p style="font-size: 1.2em; margin: 10px 0; color: #ffffff;"><strong style="color: #ffffff;">Estimated daily elec cost:${daily_cost:,.2f}</strong></p>
249
- # <p style="margin:4px 0;"><strong style="color: #ffffff;">Electricity rate:</strong> {elec_rate:.4f} USD/kWh</p>
250
- # <p style="margin:4px 0;"><strong style="color: #ffffff;">Cost bucket:</strong> {region_bucket}</p>
251
- # <p style="margin:4px 0;"><strong>Estimated daily elec cost:</strong> ${daily_cost:,.2f}</p>
252
  </div>
253
  </div>
254
  </div>
 
224
  <p style="font-size: 1.2em; margin: 10px 0; color: #ffffff;"><strong style="color: #ffffff;">Hashrate:{machine_hashrate:.2f} TH/s</strong></p>
225
  <p style="font-size: 1.2em; margin: 10px 0; color: #ffffff;"><strong style="color: #ffffff;">Power:{machine_power:.1f} W</strong></p>
226
  <p style="font-size: 1.2em; margin: 10px 0; color: #ffffff;"><strong style="color: #ffffff;">Efficiency:{machine_efficiency:.2f} W/TH</strong></p>
 
 
 
227
  </div>
228
  <div style="color:#f5f5f5;">
229
  <p style="margin:4px 0;">
230
+ <strong style="color: #ffffff;">Price (as of {pred_date.date()}):${price:,.2f}</strong>
 
231
  <span style="
232
  background:{badge_color};
233
  color:#ffffff;
 
242
  <p style="font-size: 1.2em; margin: 10px 0; color: #ffffff;"><strong style="color: #ffffff;">Electricity rate:{elec_rate:.4f} USD/kWh</strong></p>
243
  <p style="font-size: 1.2em; margin: 10px 0; color: #ffffff;"><strong style="color: #ffffff;">Cost bucket:{region_bucket}</strong></p>
244
  <p style="font-size: 1.2em; margin: 10px 0; color: #ffffff;"><strong style="color: #ffffff;">Estimated daily elec cost:${daily_cost:,.2f}</strong></p>
 
 
 
245
  </div>
246
  </div>
247
  </div>