fixed broken tool due to naming inconsistencies
This commit is contained in:
@@ -507,7 +507,7 @@ class LibraryCommands:
|
|||||||
def get_footprint_info(self, params: Dict) -> Dict:
|
def get_footprint_info(self, params: Dict) -> Dict:
|
||||||
"""Get information about a specific footprint"""
|
"""Get information about a specific footprint"""
|
||||||
try:
|
try:
|
||||||
footprint_spec = params.get("footprint")
|
footprint_spec = params.get("footprint_name")
|
||||||
if not footprint_spec:
|
if not footprint_spec:
|
||||||
return {"success": False, "message": "Missing footprint parameter"}
|
return {"success": False, "message": "Missing footprint parameter"}
|
||||||
|
|
||||||
@@ -525,12 +525,12 @@ class LibraryCommands:
|
|||||||
|
|
||||||
info = {
|
info = {
|
||||||
"library": library_nickname,
|
"library": library_nickname,
|
||||||
"footprint": footprint_name,
|
"name": footprint_name,
|
||||||
"full_name": f"{library_nickname}:{footprint_name}",
|
"full_name": f"{library_nickname}:{footprint_name}",
|
||||||
"library_path": library_path,
|
"library_path": library_path,
|
||||||
}
|
}
|
||||||
|
|
||||||
return {"success": True, "footprint_info": info}
|
return {"success": True, "info": info}
|
||||||
else:
|
else:
|
||||||
return {
|
return {
|
||||||
"success": False,
|
"success": False,
|
||||||
|
|||||||
Reference in New Issue
Block a user