Update API.js

This commit is contained in:
2024-08-21 22:39:18 +00:00
committed by GitHub
parent b20519cbd5
commit 5b8093387b
+1 -1
View File
@@ -124,7 +124,7 @@ class APIHelper {
getCookies(username, password) {
return new Promise(async (resolve, reject) => {
const pythonProcess = (await import("child_process")).exec(`python ${import.meta.dirname}/auth.py ${username} ${password}`);
const pythonProcess = (await import("child_process")).exec(`python classes/auth.py ${username} ${password}`);
pythonProcess.stdout.on('data', (data) => resolve(data.toString()));
pythonProcess.stderr.on('data', (data) => reject(data.toString()));