diff --git a/core/cless_jx3.py b/core/cless_jx3.py index 2c1769a..44c012c 100644 --- a/core/cless_jx3.py +++ b/core/cless_jx3.py @@ -167,6 +167,7 @@ class JX3Function: if not data: return_data["msg"] = "获取接口信息失败" return return_data + data = data[:7] # 加载模板 try: return_data["temp"] = load_template("temp_test.html") diff --git a/templates/temp_test.html b/templates/temp_test.html index b0b964e..d046b8b 100644 --- a/templates/temp_test.html +++ b/templates/temp_test.html @@ -2,7 +2,7 @@
-| 时间 | -贴吧 | -万宝楼 | -DD373 | -UU898 | -5173 | -7881 | +平台 / 时间 | + {% for item in items %} +{{ item.date }} | + {% endfor %}
|---|---|---|---|---|---|---|---|---|
| {{ item.date }} | -{{ item.priceTieba }} | -{{ item.priceWanbaolou }} | -{{ item.priceDd373 }} | -{{ item.priceUu898 }} | -{{ item.price5173 }} | -{{ item.price7881 }} | +贴吧 | + {% for item in items %} +{{ item.priceTieba }} | + {% endfor %} +
| 万宝楼 | + {% for item in items %} +{{ item.priceWanbaolou }} | + {% endfor %}