Skip to content

Commit

Permalink
JTools v3.7.1
Browse files Browse the repository at this point in the history
错误修复:

- 修复贝市分析工具价格趋势 24 小时维度报错的问题
  • Loading branch information
FHU-yezi committed Dec 3, 2023
2 parents da45147 + 0705db8 commit 8ad8448
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/api/v1/jpep/ftn_macket.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,13 @@ async def get_price_history(
"_id": (
{
"$dateTrunc": {
"date": "$_id",
"date": "$fetch_time",
"unit": time_unit,
},
}
)
if time_unit != "minute"
else "$_id",
else "$fetch_time",
"price": {
"$min" if type_ == "buy" else "$max": "$price",
},
Expand Down

0 comments on commit 8ad8448

Please sign in to comment.