1
This commit is contained in:
parent
96c113550d
commit
b880eff9ee
2
main.py
2
main.py
@ -195,8 +195,8 @@ async def getgameprice(request: Request, oldGameId: int, nums: int = 0):
|
||||
else:
|
||||
gameprice = db["gameprice"].find_one({"oldGameId": oldGameId},
|
||||
{"_id": 0})
|
||||
if gameprice:
|
||||
price = gameprice.get('prices', [])
|
||||
if price:
|
||||
gameprice['prices'] = price[:nums]
|
||||
else:
|
||||
logger.error(f"get price with {oldGameId} failed\n {gameprice}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user