This commit is contained in:
pengtao 2021-12-20 11:42:00 +08:00
parent 14a5160bf0
commit fe9c75d5ae

View File

@ -12,6 +12,7 @@ import starlette
import re
from pydantic import BaseModel, Field, EmailStr
import json
import pdb
# from apscheduler.events import EVENT_JOB_EXECUTED
# from jobs.jobs import Schedule, job_execute
# db.gameinfo.createIndex({pubDate: -1}, {background: true})
@ -195,6 +196,7 @@ async def getgameprice(request: Request, oldGameId: int, nums: int = 0):
else:
gameprice = db["gameprice"].find({"oldGameId": oldGameId}, {"_id": 0})
print(gameprice)
pdb.set_trace()
if gameprice:
price = gameprice.get('prices', [])
gameprice['prices'] = price[:nums]