From 0d06ed6ad3a97b6b543188fe79b295d8112877fd Mon Sep 17 00:00:00 2001 From: Abdullah Alfaraj <7842232+AbdullahAlfaraj@users.noreply.github.com> Date: Wed, 29 Nov 2023 08:41:20 +0300 Subject: [PATCH] Return the data instead of the file --- utility/sdapi/python_replacement.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utility/sdapi/python_replacement.js b/utility/sdapi/python_replacement.js index 5fb0852..f3bca02 100644 --- a/utility/sdapi/python_replacement.js +++ b/utility/sdapi/python_replacement.js @@ -397,7 +397,7 @@ async function loadPromptShortcut(file_name) { if (file.isFile) { await file.write('{}', {append: false}); data = {}; - return file; + return data } console.warn(e) return {}