mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2025-12-14 00:14:31 +08:00
only warn for unused files
This commit is contained in:
parent
9da397ea2f
commit
f6af812c2d
@ -56,7 +56,7 @@ async def deprecation_warning(request: web.Request, handler):
|
|||||||
"""Middleware to warn about deprecated frontend API paths"""
|
"""Middleware to warn about deprecated frontend API paths"""
|
||||||
path = request.path
|
path = request.path
|
||||||
|
|
||||||
if (path.startswith('/scripts/') or path.startswith('/extensions/core/')):
|
if path.startswith("/scripts/ui"):
|
||||||
# Only warn once per unique file path
|
# Only warn once per unique file path
|
||||||
if path not in _deprecated_paths_warned:
|
if path not in _deprecated_paths_warned:
|
||||||
_deprecated_paths_warned.add(path)
|
_deprecated_paths_warned.add(path)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user