Update main.py

Bug fix: patching player to 0 wara
This commit is contained in:
Cal Corum 2023-05-10 13:26:16 -05:00
parent 3bd4150da5
commit 28e02136dd

View File

@ -1539,7 +1539,7 @@ async def v1_players_patch(
raise HTTPException(status_code=404, detail=f'Team id {team_id} not found')
if name:
this_player.name = name
if wara:
if wara is not None:
this_player.wara = wara
if image:
this_player.image = image