Conding #2
@@ -17,3 +17,9 @@ def select_age(min_age,max_age,session=Depends(get_db)):
|
|||||||
except Exception:
|
except Exception:
|
||||||
raise HTTPException(status_code=500,detail="查询异常")
|
raise HTTPException(status_code=500,detail="查询异常")
|
||||||
|
|
||||||
|
def select_gender(gender,session=Depends(get_db)):
|
||||||
|
if gender is None and session is None:
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user