mirror of
https://github.com/PaiGramTeam/HonkaiStarRailWikiDataParser.git
synced 2025-01-30 18:38:36 +00:00
✨ support: relic config setID
This commit is contained in:
parent
94160f2c6a
commit
de0d049d60
@ -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
|
||||
|
@ -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"],
|
||||
|
Loading…
Reference in New Issue
Block a user