From 6e64b6f44b6be096d223bc6dc4d1bbf2485abc64 Mon Sep 17 00:00:00 2001 From: pengtao Date: Mon, 20 Dec 2021 11:43:11 +0800 Subject: [PATCH] 1 --- main.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main.py b/main.py index 66623f7..d1d610e 100644 --- a/main.py +++ b/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: