[Fix] /api/chekcpoints/info/{name} change misspelled method call

If you call:
`http://127.0.0.1:8188/api/checkpoints/info/some_name`
You will get error, that there is no method `get_checkpoint_info_by_name` in `scanner`.
Lookslike it wasn't fixed after refactoring or something. Now it works as expected.
This commit is contained in:
Jak Erdy
2025-05-10 17:38:10 +07:00
committed by GitHub
parent e918c18ca2
commit 6d97817390

View File

@@ -430,7 +430,7 @@ class CheckpointsRoutes:
"""Get detailed information for a specific checkpoint by name"""
try:
name = request.match_info.get('name', '')
checkpoint_info = await self.scanner.get_checkpoint_info_by_name(name)
checkpoint_info = await self.scanner.get_model_info_by_name(name)
if checkpoint_info:
return web.json_response(checkpoint_info)