Spaces:
Running
Running
fs.writeFileSync('/mnt/data/data.json', JSON.stringify(osintData));
Browse files
app.js
CHANGED
|
@@ -80,13 +80,7 @@ Analyze the following content in ${language}:
|
|
| 80 |
const jsonString = raw.slice(jsonStart, jsonEnd + 1);
|
| 81 |
const osintData = JSON.parse(jsonString);
|
| 82 |
|
| 83 |
-
|
| 84 |
-
if (!fs.existsSync(dir)) {
|
| 85 |
-
fs.mkdirSync(dir, { recursive: true });
|
| 86 |
-
}
|
| 87 |
-
fs.writeFileSync(path.join(dir, 'data.json'), JSON.stringify(osintData));
|
| 88 |
-
|
| 89 |
-
|
| 90 |
|
| 91 |
exec('python3 render_report.py', (error, stdout, stderr) => {
|
| 92 |
if (error) {
|
|
|
|
| 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) {
|