1
This commit is contained in:
parent
12879a1d2c
commit
a5d178031b
2
main.py
2
main.py
@ -196,7 +196,7 @@ async def getgameprice(request: Request, oldGameId: int, nums: int = 0):
|
||||
else:
|
||||
gameprice = db["gameprice"].find_one({"oldGameId": oldGameId},
|
||||
{"_id": 0})
|
||||
if dict(gameprice):
|
||||
if gameprice != None:
|
||||
price = gameprice.get('prices', [])
|
||||
gameprice['prices'] = price[:nums]
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user