MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / get_session_list

Method get_session_list

wardriving.py:2328–2356  ·  view source on GitHub ↗

List all saved wardriving sessions.

(self)

Source from the content-addressed store, hash-verified

2326 def serial_networks(self) -> int:
2327 return sum(c.networks for c in self._companions.values())
2328
2329 @property
2330 def _companion_name(self) -> str:
2331 names = [c.name for c in self._companions.values() if c.connected and c.name]
2332 return ', '.join(names) if names else ''
2333
2334 @property
2335 def _mesh_node_count(self) -> int:
2336 return sum(c.mesh_node_count for c in self._companions.values())
2337
2338 @property
2339 def _coordinator_nodes(self) -> dict:
2340 merged: dict = {}
2341 for c in self._companions.values():
2342 merged.update(c.coordinator_nodes)
2343 return merged
2344
2345 @property
2346 def _coordinator_board(self) -> str:
2347 for c in self._companions.values():
2348 if c.coordinator_board:
2349 return c.coordinator_board
2350 return ''
2351
2352 @property
2353 def _coordinator_fw(self) -> str:
2354 for c in self._companions.values():
2355 if c.coordinator_fw:
2356 return c.coordinator_fw
2357 return ''
2358
2359 @property

Callers 1

wardriving_sessionsFunction · 0.80

Calls 6

appendMethod · 0.80
connectMethod · 0.45
fetchoneMethod · 0.45
executeMethod · 0.45
fetchallMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected