/players return HTTP 200 on empty player query
This commit is contained in:
parent
7bd66b791b
commit
8b7c81f197
6
main.py
6
main.py
@ -1252,9 +1252,9 @@ async def v1_players_get(
|
||||
if limit is not None and len(final_players) >= limit:
|
||||
break
|
||||
|
||||
if len(final_players) == 0:
|
||||
db.close()
|
||||
raise HTTPException(status_code=404, detail=f'No players found')
|
||||
# if len(final_players) == 0:
|
||||
# db.close()
|
||||
# raise HTTPException(status_code=404, detail=f'No players found')
|
||||
|
||||
if csv:
|
||||
all_players.order_by(-Player.rarity.value, Player.p_name)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user