MCPcopy Create free account
hub / github.com/Tong89/smartNode / get_available_ground_stations

Method get_available_ground_stations

backend/core.py:1634–1641  ·  view source on GitHub ↗

获取可用的地面站列表

()

Source from the content-addressed store, hash-verified

1632
1633 # ⭐ 获取可用的地面站列表(优先使用用户选定的,否则使用所有地面站)
1634 def get_available_ground_stations():
1635 """获取可用的地面站列表"""
1636 if req.selected_ground_stations and len(req.selected_ground_stations) > 0:
1637 # 使用用户选定的地面站列表
1638 return [gs for gs in self.ground_stations if gs["id"] in req.selected_ground_stations]
1639 else:
1640 # 使用所有地面站
1641 return self.ground_stations
1642
1643 available_ground_stations = get_available_ground_stations()
1644

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected