1
This commit is contained in:
parent
de97ffa333
commit
d257eabc7a
16
main.py
16
main.py
@ -88,10 +88,22 @@ async def getgamelist(
|
|||||||
if isLowest:
|
if isLowest:
|
||||||
find_args["isLowest"] = {"$ne": 0}
|
find_args["isLowest"] = {"$ne": 0}
|
||||||
find_args["platform"] = platform
|
find_args["platform"] = platform
|
||||||
gamelist = db["gameinfo"].find(find_args, {
|
gamelist = db["gameinfo"].find(
|
||||||
|
find_args, {
|
||||||
"_id": 0,
|
"_id": 0,
|
||||||
"oldGameId": 1,
|
"oldGameId": 1,
|
||||||
"name": 1
|
"name": 1,
|
||||||
|
"banner": 1,
|
||||||
|
"category": 1,
|
||||||
|
"chinese": 1,
|
||||||
|
"cutOff": 1,
|
||||||
|
"discountLeftTime": 1,
|
||||||
|
"isLowest": 1,
|
||||||
|
"originPrice": 1,
|
||||||
|
"platform": 1,
|
||||||
|
"price": 1,
|
||||||
|
"icon": 1,
|
||||||
|
"mcScore": 1,
|
||||||
}).sort("_id").skip(skip).limit(limit)
|
}).sort("_id").skip(skip).limit(limit)
|
||||||
logger.info(f"get gamelist with {find_args}!")
|
logger.info(f"get gamelist with {find_args}!")
|
||||||
return JSONResponse(
|
return JSONResponse(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user