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