Skip to content

Commit

Permalink
Add eventId and eventGroupId to NiceItem
Browse files Browse the repository at this point in the history
  • Loading branch information
narumi147 committed Aug 25, 2024
1 parent b7032be commit ce1a7a3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/core/nice/event/shop.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ def get_nice_shop(
),
background=NiceItemBGType.zero,
value=0,
eventId=0,
eventGroupId=0,
priority=0,
dropPriority=0,
startedAt=0,
Expand Down
2 changes: 2 additions & 0 deletions app/core/nice/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ def get_nice_item_from_raw(
icon=icon_url,
background=ITEM_BG_TYPE_NAME.get(raw_item.bgImageId, NiceItemBGType.unknown),
value=raw_item.value,
eventId=raw_item.eventId,
eventGroupId=raw_item.eventGroupId,
priority=raw_item.priority,
dropPriority=raw_item.dropPriority,
startedAt=raw_item.startedAt,
Expand Down
2 changes: 2 additions & 0 deletions app/schemas/nice.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,8 @@ class NiceItem(BaseModelORJson):
icon: HttpUrl
background: NiceItemBGType
value: int
eventId: int
eventGroupId: int
priority: int
dropPriority: int
startedAt: int
Expand Down

0 comments on commit ce1a7a3

Please # to comment.