Basti1110 commited on
Commit
a05e8ea
·
verified ·
1 Parent(s): d7a1c5e

/tmp/data.json

Browse files
Files changed (1) hide show
  1. app.js +2 -2
app.js CHANGED
@@ -80,14 +80,14 @@ Analyze the following content in ${language}:
80
  const jsonString = raw.slice(jsonStart, jsonEnd + 1);
81
  const osintData = JSON.parse(jsonString);
82
 
83
- fs.writeFileSync('/mnt/data/data.json', JSON.stringify(osintData));
84
 
85
  exec('python3 render_report.py', (error, stdout, stderr) => {
86
  if (error) {
87
  console.error('Error generating report:', stderr);
88
  res.status(500).send('Error rendering the report.');
89
  } else {
90
- res.sendFile(path.join(__dirname, '/mnt/data/OSINT_Report.html'));
91
  }
92
  });
93
 
 
80
  const jsonString = raw.slice(jsonStart, jsonEnd + 1);
81
  const osintData = JSON.parse(jsonString);
82
 
83
+ fs.writeFileSync('/tmp/data.json', JSON.stringify(osintData));
84
 
85
  exec('python3 render_report.py', (error, stdout, stderr) => {
86
  if (error) {
87
  console.error('Error generating report:', stderr);
88
  res.status(500).send('Error rendering the report.');
89
  } else {
90
+ res.sendFile(path.join(__dirname, '/tmp/OSINT_Report.html'));
91
  }
92
  });
93