This commit is contained in:
pengtao 2021-12-15 16:12:54 +08:00
parent 415189bc25
commit 602f84ca28

View File

@ -74,6 +74,7 @@ async def getPlatform(request: Request, platformAlias: str):
@app.get("/getgamelist")
async def getgamelist(
request: Request,
category: str = '',
name: str = '',
cutoff: bool = False,
isLowest: bool = False,
@ -86,6 +87,8 @@ async def getgamelist(
try:
find_args = {}
# db.gameinfo.find({'$or':[{"name":/アサツグトリ/},{"subName":'abc'}]})
if category:
find_args['category'] = category
if name:
find_args['$or'] = [{
"name": re.compile(name)