1
This commit is contained in:
parent
5389226e6a
commit
b84c6b7b92
4
main.py
4
main.py
@ -228,8 +228,8 @@ async def getgameprice(request: Request, oldGameId: int, nums: int = 0):
|
|||||||
gameprice['prices'] = price[:nums]
|
gameprice['prices'] = price[:nums]
|
||||||
else:
|
else:
|
||||||
logger.error(f"get price with {oldGameId} failed\n {gameprice}")
|
logger.error(f"get price with {oldGameId} failed\n {gameprice}")
|
||||||
gameprice = {"prices": []}
|
if not gameprice:
|
||||||
|
gameprice = {"prices": []}
|
||||||
logger.info(f"get gameprice with {oldGameId} !")
|
logger.info(f"get gameprice with {oldGameId} !")
|
||||||
return JSONResponse(
|
return JSONResponse(
|
||||||
status_code=starlette.status.HTTP_200_OK,
|
status_code=starlette.status.HTTP_200_OK,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user