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

Method get_latest_scan_results

shared.py:1851–1863  ·  view source on GitHub ↗

Retrieve fresh scan results from memory for a specific SSID (defaults to active).

(self, ssid=None)

Source from the content-addressed store, hash-verified

1849 self.ragnarstatusimage = getattr(self, self.ragnarorch_status)
1850 if self.ragnarstatusimage is None:
1851 raise AttributeError
1852 except AttributeError:
1853 logger.warning(f"The image for status {self.ragnarorch_status} is not available, using IDLE image by default.")
1854 self.ragnarstatusimage = self.attack
1855
1856 self.ragnarstatustext = self.ragnarorch_status # Mettre à jour le texte du statut
1857
1858
1859 def load_image(self, image_path, scale=None):
1860 """Load an image, optionally resizing it by the given scale factor."""
1861 if Image is None:
1862 return None
1863 try:
1864 if not os.path.exists(image_path):
1865 logger.warning(f"Warning: {image_path} does not exist.")
1866 return None

Callers 1

runMethod · 0.80

Calls 3

_slug_for_ssidMethod · 0.95
infoMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected