@@ -111,7 +111,7 @@ async def websocket_handler(request):
111
111
# On reconnect if we are the currently executing client send the current node
112
112
if self .client_id == sid and self .last_node_id is not None :
113
113
await self .send ("executing" , { "node" : self .last_node_id }, sid )
114
-
114
+
115
115
async for msg in ws :
116
116
if msg .type == aiohttp .WSMsgType .ERROR :
117
117
logging .warning ('ws connection closed with exception %s' % ws .exception ())
@@ -132,9 +132,9 @@ def get_embeddings(self):
132
132
async def get_extensions (request ):
133
133
files = glob .glob (os .path .join (
134
134
glob .escape (self .web_root ), 'extensions/**/*.js' ), recursive = True )
135
-
135
+
136
136
extensions = list (map (lambda f : "/" + os .path .relpath (f , self .web_root ).replace ("\\ " , "/" ), files ))
137
-
137
+
138
138
for name , dir in nodes .EXTENSION_WEB_DIRS .items ():
139
139
files = glob .glob (os .path .join (glob .escape (dir ), '**/*.js' ), recursive = True )
140
140
extensions .extend (list (map (lambda f : "/extensions/" + urllib .parse .quote (
@@ -154,7 +154,7 @@ def get_dir_by_type(dir_type):
154
154
type_dir = folder_paths .get_output_directory ()
155
155
156
156
return type_dir , dir_type
157
-
157
+
158
158
def compare_image_hash (filepath , image ):
159
159
# function to compare hashes of two images to see if it already exists, fix to #3465
160
160
if os .path .exists (filepath ):
@@ -167,7 +167,7 @@ def compare_image_hash(filepath, image):
167
167
f .close ()
168
168
return a .hexdigest () == b .hexdigest ()
169
169
return False
170
-
170
+
171
171
def image_upload (post , image_save_function = None ):
172
172
image = post .get ("image" )
173
173
overwrite = post .get ("overwrite" )
@@ -205,7 +205,7 @@ def image_upload(post, image_save_function=None):
205
205
filepath = os .path .join (full_output_folder , filename )
206
206
i += 1
207
207
208
- if not image_is_duplicate :
208
+ if not image_is_duplicate :
209
209
if image_save_function is not None :
210
210
image_save_function (image , post , filepath )
211
211
else :
0 commit comments