From 7829f13b281c1a61f56cb586000c20b16764cfbc Mon Sep 17 00:00:00 2001 From: thecooltechguy Date: Thu, 25 Jan 2024 12:38:41 -0800 Subject: [PATCH] wip --- __init__.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/__init__.py b/__init__.py index f0b784f..bd59d1b 100755 --- a/__init__.py +++ b/__init__.py @@ -26,25 +26,6 @@ custom_nodes_path = os.path.join(comfy_path, 'custom_nodes') CW_ENDPOINT = os.environ.get("CW_ENDPOINT", "https://comfyworkflows.com") -import re -import unicodedata - -def slugify(value, allow_unicode=False): - """ - Taken from https://github.com/django/django/blob/master/django/utils/text.py - Convert to ASCII if 'allow_unicode' is False. Convert spaces or repeated - dashes to single dashes. Remove characters that aren't alphanumerics, - underscores, or hyphens. Convert to lowercase. Also strip leading and - trailing whitespace, dashes, and underscores. - """ - value = str(value) - if allow_unicode: - value = unicodedata.normalize('NFKC', value) - else: - value = unicodedata.normalize('NFKD', value).encode('ascii', 'ignore').decode('ascii') - value = re.sub(r'[^\w\s-]', '', value.lower()) - return re.sub(r'[-\s]+', '-', value).strip('-_') - def get_current_snapshot(): # Get ComfyUI hash (credit to ComfyUI-Manager for this function)