|
@@ -83,19 +83,23 @@ async def tree_list():
|
|
|
cnt+=1
|
|
|
if cnt > 10:
|
|
|
break
|
|
|
-
|
|
|
+
|
|
|
html+="</table></body></html>"
|
|
|
return html
|
|
|
|
|
|
|
|
|
#response_class=RedirectResponse
|
|
|
@app.post("/gen_tree/",response_class=HTMLResponse)
|
|
|
-async def func_expand(kw: str = Form(...),kw2:Optional[str] = Form(None) ):
|
|
|
+async def func_expand(kw: str = Form(...),kw2:Optional[str] = Form(None),kw3:Optional[str] = Form(None),kw4:Optional[str] = Form(None) ):
|
|
|
kwlst=[]
|
|
|
if len(kw)>1:
|
|
|
kwlst.append(kw)
|
|
|
if kw2 is not None:
|
|
|
kwlst.append(kw2)
|
|
|
+ if kw3 is not None:
|
|
|
+ kwlst.append(kw3)
|
|
|
+ if kw4 is not None:
|
|
|
+ kwlst.append(kw4)
|
|
|
|
|
|
x = threading.Thread(target=thread_function, args=(kwlst,))
|
|
|
x.start()
|