Implement Excel file generation with variable injection from config.json
This commit is contained in:
@@ -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}`);
|
||||
|
||||
Reference in New Issue
Block a user