fix
This commit is contained in:
parent
ed2f8c05a4
commit
9ec170678e
@ -3022,8 +3022,6 @@
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"\n",
|
||||
"\n",
|
||||
"@app.get(\"/form/exhibition/{exhibition_id}\", response_class=HTMLResponse)\n",
|
||||
"async def form_exhibition(\n",
|
||||
" request: Request,\n",
|
||||
@ -3058,8 +3056,7 @@
|
||||
" background_tasks.add_task(logo_user_task, bson_clear(current_user))\n",
|
||||
" return {'ok': True}\n",
|
||||
" except Exception as e:\n",
|
||||
" raise HTTPException(status_code=500, detail=str(e))\n",
|
||||
"\n"
|
||||
" raise HTTPException(status_code=500, detail=str(e))\n"
|
||||
],
|
||||
"display_name": ".venv"
|
||||
},
|
||||
|
||||
3
main.py
3
main.py
@ -2238,8 +2238,6 @@ async def form_exhibition(
|
||||
request=request, name="form/exhibition.html", context={"id": 1, "user": user}
|
||||
)
|
||||
|
||||
|
||||
|
||||
@app.get("/form/exhibition/{exhibition_id}", response_class=HTMLResponse)
|
||||
async def form_exhibition(
|
||||
request: Request,
|
||||
@ -2268,7 +2266,6 @@ async def avatar_change(
|
||||
raise HTTPException(status_code=500, detail=str(e))
|
||||
|
||||
|
||||
|
||||
@app.put("/api/user/form", response_model=dict)
|
||||
async def user_form(
|
||||
request: Request,
|
||||
|
||||
2
utils.py
2
utils.py
@ -352,7 +352,7 @@ def is_safe_redirect(next_url: str) -> bool:
|
||||
return False
|
||||
|
||||
|
||||
async def build_composite(data, scale: float = 1.5, new_w: int = 500, GaussianBlur_radius: int = 10):
|
||||
async def build_composite(data, scale: float = 1.5, new_w: int = 500, GaussianBlur_radius: int = 80):
|
||||
src_img = Image.open(BytesIO(data)).convert('RGB')
|
||||
|
||||
# --------------------------------------------------------------
|
||||
|
||||
Loading…
Reference in New Issue
Block a user