1

Refactoring

This commit is contained in:
2025-11-28 16:05:31 +01:00
parent 8908c7f6cf
commit 3477ed04be
17 changed files with 11 additions and 312 deletions

View File

@@ -3,7 +3,7 @@ const path = require("path");
async function renderWithPython({ type, data, outputPath }) {
return new Promise((resolve, reject) => {
const scriptPath = path.resolve(__dirname, "../../render_stats_charts.py");
const scriptPath = path.resolve(__dirname, "../render_stats_charts.py");
const child = spawn("python3", [scriptPath, "--type", type, "--output", outputPath], {
stdio: ["pipe", "inherit", "inherit"],
});
@@ -29,4 +29,3 @@ async function renderWithPython({ type, data, outputPath }) {
module.exports = {
renderWithPython,
};