Skip to content

Commit

Permalink
<jx3>[feat]fix gold price
Browse files Browse the repository at this point in the history
  • Loading branch information
HornCopper committed Sep 14, 2024
1 parent 3545b9d commit b60f7d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/jx3/gold/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async def demon_(server: str = "", group_id: str = ""): # 金价 <服务器>

for platform in types:
input_data[types[platform]] = json.dumps([each_price[platform] for each_price in data["data"]], ensure_ascii=False)
html = Template(read(VIEWS + "/jx3/trade/gold_v1.html")).render(**input_data)
html = Template(read(VIEWS + "/jx3/trade/gold_v2.html")).render(**input_data)
else:
template_jinjia = """
<tr>
Expand Down Expand Up @@ -133,7 +133,7 @@ async def demon_(server: str = "", group_id: str = ""): # 金价 <服务器>
}
for platform in types:
input_data[types[platform]] = json.dumps(platform_to_averages[types[platform]], ensure_ascii=False)
html = Template(read(VIEWS + "/jx3/trade/gold_v2.html")).render(**input_data)
html = Template(read(VIEWS + "/jx3/trade/gold_v1.html")).render(**input_data)

final_html = CACHE + "/" + get_uuid() + ".html"
write(final_html, html)
Expand Down

0 comments on commit b60f7d9

Please sign in to comment.