update backend connection for daily menu generation

This commit is contained in:
Mateo Körber Belmonte
2025-03-02 12:48:22 +01:00
parent 2baa7f2bc6
commit b4247e32df
4 changed files with 14 additions and 8 deletions
+3 -2
View File
@@ -215,9 +215,10 @@ app.post('/generate-pdf', (req, res) => {
if (type === 'week') {
console.log('Generating PDF for week:', val);
pdfPath = `python3 scripts/writePdf.py ${val}`;
} else {
pdfPath = `python3 scripts/writeWeeklyPdf.py ${val}`;
} else if (type === 'day') {
console.log('Generating PDF for daily:', val);
pdfPath = `python3 /scripts/writeDailyMenu.py ${val}`;
}