Skip to content

Commit

Permalink
Revert "Use default item value in event trade eventPointItem"
Browse files Browse the repository at this point in the history
This reverts commit a881668.
  • Loading branch information
squaresmile committed Nov 13, 2024
1 parent a881668 commit 3edaf06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions app/core/nice/event/trade.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ def get_nice_trade_goods(
gifts=get_nice_gifts(region, trade.giftId, gift_data),
consumes=get_nice_common_consumes(raw_consumes, trade.commonConsumeId),
eventPointNum=trade.eventPointNum,
eventPointItem=item_map.get(
trade.eventPointItemId, next(iter(item_map.values()))
),
eventPointItem=item_map.get(trade.eventPointItemId, None),
tradeTime=trade.tradeTime,
maxNum=trade.maxNum,
maxTradeTime=trade.maxTradeTime,
Expand Down
2 changes: 1 addition & 1 deletion app/schemas/nice.py
Original file line number Diff line number Diff line change
Expand Up @@ -2165,7 +2165,7 @@ class NiceEventTradeGoods(BaseModelORJson):
gifts: list[NiceGift]
consumes: list[NiceCommonConsume]
eventPointNum: int
eventPointItem: NiceItem
eventPointItem: NiceItem | None
tradeTime: int
maxNum: int
maxTradeTime: int
Expand Down

0 comments on commit 3edaf06

Please sign in to comment.