Implement Excel file generation with variable injection from config.json

This commit is contained in:
denisacirstea
2025-09-12 10:51:02 +03:00
parent 1b9cb50961
commit 9c0435ddd8
7 changed files with 143 additions and 511 deletions

View File

@@ -35,8 +35,8 @@ app.post('/calculate', async (req, res) => {
await updateConfig(formData);
console.log('Config file updated successfully');
// Run Python script to create Excel file with variables injection
exec('python3 create_excel_xlwings.py', (error, stdout, stderr) => {
// Run Python script to create Excel file
exec('python3 create_excel.py', (error, stdout, stderr) => {
if (error) {
console.error(`Error executing Python script: ${error}`);
console.error(`stderr: ${stderr}`);