support: relic config setID

This commit is contained in:
xtaodada 2023-05-10 14:50:20 +08:00
parent 94160f2c6a
commit de0d049d60
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
2 changed files with 4 additions and 1 deletions

View File

@ -3,7 +3,7 @@ from typing import Optional, Dict
from pydantic import BaseModel, root_validator
from models.enums import RelicAffix
from .enums import RelicAffix
class SingleRelicAffix(BaseModel):
@ -22,6 +22,8 @@ class SingleRelicAffix(BaseModel):
class RelicAffixAll(BaseModel):
id: int
set_id: int
""" 套装ID """
main_affix_group: int
sub_affix_group: int
max_level: int

View File

@ -21,6 +21,7 @@ async def fetch_all_relic():
for key, value in relic_data.items():
relic_affix_all = RelicAffixAll(
id=int(key),
set_id=value["SetID"],
main_affix_group=value["MainAffixGroup"],
sub_affix_group=value["SubAffixGroup"],
max_level=value["MaxLevel"],