1
This commit is contained in:
parent
14a5160bf0
commit
fe9c75d5ae
2
main.py
2
main.py
@ -12,6 +12,7 @@ import starlette
|
|||||||
import re
|
import re
|
||||||
from pydantic import BaseModel, Field, EmailStr
|
from pydantic import BaseModel, Field, EmailStr
|
||||||
import json
|
import json
|
||||||
|
import pdb
|
||||||
# from apscheduler.events import EVENT_JOB_EXECUTED
|
# from apscheduler.events import EVENT_JOB_EXECUTED
|
||||||
# from jobs.jobs import Schedule, job_execute
|
# from jobs.jobs import Schedule, job_execute
|
||||||
# db.gameinfo.createIndex({pubDate: -1}, {background: true})
|
# db.gameinfo.createIndex({pubDate: -1}, {background: true})
|
||||||
@ -195,6 +196,7 @@ async def getgameprice(request: Request, oldGameId: int, nums: int = 0):
|
|||||||
else:
|
else:
|
||||||
gameprice = db["gameprice"].find({"oldGameId": oldGameId}, {"_id": 0})
|
gameprice = db["gameprice"].find({"oldGameId": oldGameId}, {"_id": 0})
|
||||||
print(gameprice)
|
print(gameprice)
|
||||||
|
pdb.set_trace()
|
||||||
if gameprice:
|
if gameprice:
|
||||||
price = gameprice.get('prices', [])
|
price = gameprice.get('prices', [])
|
||||||
gameprice['prices'] = price[:nums]
|
gameprice['prices'] = price[:nums]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user