fix
This commit is contained in:
parent
c4011f0e45
commit
d47c44e0ec
|
@ -43,7 +43,7 @@ def start_check(
|
||||||
i["result"] = False
|
i["result"] = False
|
||||||
result.append(i)
|
result.append(i)
|
||||||
|
|
||||||
if result_type == "test":
|
if result_type == "text":
|
||||||
results = []
|
results = []
|
||||||
for i in result:
|
for i in result:
|
||||||
if i["result"]:
|
if i["result"]:
|
||||||
|
|
|
@ -24,7 +24,7 @@ async def check_ports(request: Request):
|
||||||
@router.get("/start")
|
@router.get("/start")
|
||||||
async def start_check_ports(request: Request, inputText: str):
|
async def start_check_ports(request: Request, inputText: str):
|
||||||
|
|
||||||
results = start_check(inputText, result_type="test")
|
results = start_check(inputText, result_type="text")
|
||||||
return templates.TemplateResponse(
|
return templates.TemplateResponse(
|
||||||
"body-check_ports.html",
|
"body-check_ports.html",
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue