1
This commit is contained in:
parent
fe9c75d5ae
commit
6e64b6f44b
4
main.py
4
main.py
@ -195,9 +195,7 @@ async def getgameprice(request: Request, oldGameId: int, nums: int = 0):
|
||||
{"_id": 0})
|
||||
else:
|
||||
gameprice = db["gameprice"].find({"oldGameId": oldGameId}, {"_id": 0})
|
||||
print(gameprice)
|
||||
pdb.set_trace()
|
||||
if gameprice:
|
||||
if dict(gameprice):
|
||||
price = gameprice.get('prices', [])
|
||||
gameprice['prices'] = price[:nums]
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user