mirror of
https://github.com/PaiGramTeam/StarRailDamageCal.git
synced 2024-11-16 04:45:43 +00:00
bump version
This commit is contained in:
parent
2ddb018840
commit
1c55975fb3
@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "starrail_damage_cal"
|
||||
version = "1.8.1"
|
||||
version = "1.8.2"
|
||||
description = "For StarRail Role Damage Cal"
|
||||
authors = [
|
||||
{name = "qwerdvd", email = "105906879+qwerdvd@users.noreply.github.com"},
|
||||
|
@ -35,7 +35,7 @@ async def cal_relic_sub_affix(relic_id: int, affix_id: int, cnt: int, step: int)
|
||||
rarity = int(str(relic_id)[0]) - 1
|
||||
relic_data = None
|
||||
for relic in RelicSubAffixConfig:
|
||||
if relic.AffixID == affix_id:
|
||||
if relic.AffixID == affix_id and relic.GroupID == rarity:
|
||||
relic_data = relic
|
||||
break
|
||||
if relic_data is None:
|
||||
|
4
test.py
4
test.py
@ -2,10 +2,12 @@ import json
|
||||
from typing import List, Union
|
||||
|
||||
from starrail_damage_cal.cal_damage import DamageCal
|
||||
from starrail_damage_cal.to_data import api_to_dict
|
||||
|
||||
|
||||
async def test_get_damage_data_by_uid() -> None:
|
||||
data = await DamageCal.get_all_damage_data_by_uid(uid="100111010")
|
||||
# print(await api_to_dict("108069476"))
|
||||
data = await DamageCal.get_damage_data_by_uid(uid="108069476", avatar_name="流萤")
|
||||
if isinstance(data, Union[List, dict]):
|
||||
print(json.dumps(data, ensure_ascii=False, indent=4))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user