sort by hashrate

Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
This commit is contained in:
Florian Brandes 2024-01-01 15:23:39 +01:00
parent 0db8dc2433
commit 71da808969
No known key found for this signature in database
GPG key ID: 074048E893713170

View file

@ -66,8 +66,10 @@ def render():
w_list = w.split(",")
w_list[1] = humanfriendly.format_timespan(int(w_list[1]))
w_list[2] = human_numbers(int(w_list[2]))
w_list[3] = human_numbers(int(w_list[3]))
workers_concat.append(w_list)
workers_concat = sorted(workers_concat, key=lambda x: int(x[3]), reverse=True)
for w in workers_concat:
w[3] = human_numbers(int(w[3]))
return render_template(
"index.html",
my_bday=my_bday,