Skip to content

Commit

Permalink
<jx3>[feat]reserve item price table
Browse files Browse the repository at this point in the history
  • Loading branch information
Inkar-Suki committed Sep 9, 2024
1 parent 179e751 commit 106a8d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/jx3/trade/item_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ async def getItemHistory(standard_name: str) -> Tuple[List[int], List[str]]:
for each_data in data:
dates.append(convert_time(int(datetime.datetime.strptime(each_data["tradeTime"], "%Y-%m-%dT%H:%M:%S.000+0000").timestamp()), "%Y-%m-%d"))
prices.append(each_data["price"])
return prices, dates
return prices[::-1], dates[::-1]

async def getItemDetail(item_name: str):
item_data = await queryWj("https://www.aijx3.cn/api/wj/goods/getGoodsDetail", params={"goodsName": item_name})
Expand Down

0 comments on commit 106a8d6

Please sign in to comment.