diff --git a/main.py b/main.py index bc8fea8..66623f7 100644 --- a/main.py +++ b/main.py @@ -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]