fix site test

This commit is contained in:
jxxghp
2024-03-27 15:35:01 +08:00
parent f9069bf19b
commit eb751bb581
2 changed files with 11 additions and 5 deletions

View File

@ -174,7 +174,7 @@ def test_site(site_id: int,
status_code=404,
detail=f"站点 {site_id} 不存在",
)
status, message = SiteChain().test(site.domain)
status, message = SiteChain().test(url=site.domain)
return schemas.Response(success=status, message=message)