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

Method _slug_for_ssid

shared.py:1798–1806  ·  view source on GitHub ↗
(self, ssid)

Source from the content-addressed store, hash-verified

1796 logger.error(f"Error loading images from actions file: {e}")
1797
1798 # Load image series dynamically from subdirectories
1799 self.image_series = {}
1800 for status in self.status_list:
1801 self.image_series[status] = []
1802 status_dir = os.path.join(self.statuspicdir, status)
1803 if not os.path.isdir(status_dir):
1804 os.makedirs(status_dir)
1805 logger.warning(f"Directory {status_dir} did not exist and was created.")
1806 logger.warning(f" {status} wil use the IDLE images till you add some images in the {status} folder")
1807
1808 for image_name in os.listdir(status_dir):
1809 if image_name.endswith('.bmp') and re.search(r'\d', image_name):

Callers 2

Calls 1

_slugifyMethod · 0.80

Tested by

no test coverage detected