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})
|
{"_id": 0})
|
||||||
else:
|
else:
|
||||||
gameprice = db["gameprice"].find({"oldGameId": oldGameId}, {"_id": 0})
|
gameprice = db["gameprice"].find({"oldGameId": oldGameId}, {"_id": 0})
|
||||||
print(gameprice)
|
if dict(gameprice):
|
||||||
pdb.set_trace()
|
|
||||||
if gameprice:
|
|
||||||
price = gameprice.get('prices', [])
|
price = gameprice.get('prices', [])
|
||||||
gameprice['prices'] = price[:nums]
|
gameprice['prices'] = price[:nums]
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user