1
This commit is contained in:
parent
14a5160bf0
commit
fe9c75d5ae
2
main.py
2
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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user