This commit is contained in:
pengtao 2021-12-20 11:40:36 +08:00
parent b80ee7f433
commit 14a5160bf0

View File

@ -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]