修复默认展示最新 7 天数据而非最老数据

This commit is contained in:
2026-07-24 22:23:20 +08:00
parent 5e88a1ce24
commit e65661ef94
+1 -1
View File
@@ -37,7 +37,7 @@
<table id="bars-table"> <table id="bars-table">
<tr><th>日期</th><th>星期</th><th>开盘</th><th>收盘</th><th>最高</th><th>最低</th><th>波幅</th><th>5日均振幅</th></tr> <tr><th>日期</th><th>星期</th><th>开盘</th><th>收盘</th><th>最高</th><th>最低</th><th>波幅</th><th>5日均振幅</th></tr>
{% for row in rows %} {% for row in rows %}
<tr data-index="{{ loop.index0 }}" data-diff="{{ row.diff }}" data-date="{{ row.date }}" data-weekday="{{ row.weekday }}"{% if loop.index0 >= 7 %} class="extra-row" style="display:none;"{% endif %}> <tr data-index="{{ loop.index0 }}" data-diff="{{ row.diff }}" data-date="{{ row.date }}" data-weekday="{{ row.weekday }}"{% if loop.revindex0 >= 7 %} class="extra-row" style="display:none;"{% endif %}>
<td>{{ row.date }}</td> <td>{{ row.date }}</td>
<td>{{ row.weekday }}</td> <td>{{ row.weekday }}</td>
<td>{{ row.open }}</td> <td>{{ row.open }}</td>