Skip to content

Commit 3e73a7e

Browse files
committed
feat: Fix typo in endpoint name, pass category
1 parent f0d8b33 commit 3e73a7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/app/routers/revive_stats.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ async def revive_skill_correlation(
141141
return models.ReviveSkillSuccessCorrelation(correlation=corr, p_value=p_value)
142142

143143

144-
@router.get("/revice_chance", response_model=models.ReviveChance)
144+
@router.get("/revive_chance", response_model=models.ReviveChance)
145145
async def revives(
146146
target_api_key: str,
147147
timestamp: Optional[int] = Query(
@@ -178,7 +178,7 @@ async def revives(
178178
data = await fetch_torn_api(
179179
api_key=api_key,
180180
endpoint=api_config.REVIVES_STATISTICS_ENDPOINT,
181-
params={"timestamp": timestamp, "comment": comment},
181+
params={"timestamp": timestamp, "comment": comment, "stat": "reviveskill,revives,revivesreceived"},
182182
)
183183
reviver_stats = models.ReviveStats(**data).personalstats
184184
skill_stat: models.PersonalStat = reviver_stats[0]

0 commit comments

Comments
 (0)