The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
fix: append directory type annotation to internal files endpoint response (#13078) (#13305)
Abdul Rehman138571da955d
diff --git a/api_server/routes/internal/internal_routes.py b/api_server/routes/internal/internal_routes.pyindex b224306da..1477afa01 100644--- a/api_server/routes/internal/internal_routes.py+++ b/api_server/routes/internal/internal_routes.py@@ -67,7 +67,7 @@ class InternalRoutes:(entry for entry in os.scandir(directory) if is_visible_file(entry)),key=lambda entry: -entry.stat().st_mtime)- return web.json_response([entry.name for entry in sorted_files], status=200)+ return web.json_response([f"{entry.name} [{directory_type}]" for entry in sorted_files], status=200)def get_app(self):