small changes

This commit is contained in:
Mateo Körber Belmonte
2025-02-28 16:02:15 +01:00
parent f059a478d7
commit e891dacc12
2 changed files with 7 additions and 7 deletions
+5 -5
View File
@@ -208,16 +208,16 @@ app.get('/load-day-daily', (req, res) => {
const { exec } = require('child_process');
app.post('/generate-pdf', (req, res) => {
const { week, type } = req.body;
const { val, type } = req.body;
let pdfPath;
console.log('Type:', type);
console.log('Week:', week);
console.log('Val:', val);
if (type === 'week') {
console.log('Generating PDF for week:', week);
pdfPath = `python.exe .\\scripts\\writePdf.py ${week}`;
console.log('Generating PDF for week:', val);
pdfPath = `python.exe .\\scripts\\writePdf.py ${val}`;
} else {
console.log('Generating PDF for daily:', week);
console.log('Generating PDF for daily:', val);
}