T15: buang voter basi di scan + hapus bobot suara & UI basi di web

get_voters.py kini menyimpan hanya pemilih segar (last_vote tak
diketahui atau > VEX_STALE_DAYS dibuang di normalize, V13). Web
menampilkan kolom RANK/AKUN/STAKE/VOTE TERAKHIR, tanpa BOBOT SUARA,
stat VOTE BASI, penanda/ filter ?stale=1 (V15). voters.db dipangkas
336 → 42. Oracle diperbarui dan lolos.
This commit is contained in:
proitlab committed 2026-08-04 17:18:50 +07:00
1 parent b0b3ba8ab3
commit 41990af9af
10 files changed
+131 -159

No files matched your search

+4 -22
View File
@@ -36,10 +36,6 @@
<span class="cell-value">{{ top_staked|vex }}</span>
<span class="cell-label">STAKE TERTINGGI</span>
</div>
<div class="spec-cell">
<span class="cell-value">{{ stale_count }}</span>
<span class="cell-label">VOTE BASI</span>
</div>
</section>
<form class="search" method="get" action="{{ url_for('index') }}">
@@ -53,35 +49,22 @@
<p class="caption search-result" id="search-result">
{% if q %}HASIL · {{ filtered_count }} AKUN UNTUK "{{ q }}"{% endif %}
{% if stale %}HANYA VOTE BASI · {{ filtered_count }} AKUN{% endif %}
</p>
<div class="search-extra">
{% if not stale %}
<a class="clear" href="{{ url_for('index', stale=1) }}">TAMPILKAN VOTE BASI SAJA</a>
{% else %}
<a class="clear" href="{{ url_for('index') }}">SEMUA VOTER</a>
{% endif %}
</div>
<section class="spec-list" id="spec-list">
<div class="list-header">
<span>RANK</span>
<span>AKUN</span>
<span>STAKE (VEX)</span>
<span>VOTE TERAKHIR</span>
<span>BOBOT SUARA</span>
</div>
<div class="list-rows" id="rows">
{% for row in rows %}
<div class="list-row {% if row[6] %}is-stale{% endif %}">
<div class="list-row">
<span class="rank">{{ row[4] }}</span>
<span class="owner">{{ row[0] }}</span>
<span class="stake" data-label="STAKE (VEX)">{{ row[1]|vex }}</span>
<span class="vote-date" data-label="VOTE TERAKHIR">
{% if row[6] %}<span class="stale-mark">BASI</span>{% endif %}{{ row[5]|shortdate }}
</span>
<span class="weight" data-label="BOBOT SUARA">{{ row[2] }}</span>
<span class="vote-date" data-label="VOTE TERAKHIR">{{ row[5]|shortdate }}</span>
</div>
{% else %}
<div class="empty">
@@ -93,12 +76,11 @@
<nav class="pager" id="pager" aria-label="Navigasi halaman">
{% set qp = q if q else None %}
{% set sp = '1' if stale else None %}
<a class="pill {% if page <= 1 %}pill-disabled{% endif %}"
href="{{ url_for('index', page=page-1, q=qp, stale=sp) }}">← SEBELUMNYA</a>
href="{{ url_for('index', page=page-1, q=qp) }}">← SEBELUMNYA</a>
<span class="page-count">{{ page }} / {{ total_pages }}</span>
<a class="pill {% if page >= total_pages %}pill-disabled{% endif %}"
href="{{ url_for('index', page=page+1, q=qp, stale=sp) }}">BERIKUTNYA →</a>
href="{{ url_for('index', page=page+1, q=qp) }}">BERIKUTNYA →</a>
</nav>
</main>