1
This commit is contained in:
parent
415189bc25
commit
602f84ca28
3
main.py
3
main.py
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user