mirror of
https://github.com/PaiGramTeam/StarRailDamageCal.git
synced 2024-11-16 04:45:43 +00:00
17 lines
421 B
Python
17 lines
421 B
Python
import json
|
|
from typing import List, Union
|
|
|
|
from starrail_damage_cal.cal_damage import DamageCal
|
|
|
|
|
|
async def test_get_damage_data_by_uid() -> None:
|
|
data = await DamageCal.get_all_damage_data_by_uid(uid="121006662")
|
|
if isinstance(data, Union[List, dict]):
|
|
print(json.dumps(data, ensure_ascii=False, indent=4))
|
|
|
|
|
|
if __name__ == "__main__":
|
|
import asyncio
|
|
|
|
asyncio.run(test_get_damage_data_by_uid())
|