Pepguy commited on
Commit
609dc98
·
verified ·
1 Parent(s): 239f0b1

Update app.js

Browse files
Files changed (1) hide show
  1. app.js +1 -1
app.js CHANGED
@@ -1431,7 +1431,7 @@ app.get('/dataset/download', (req, res) => {
1431
 
1432
  app.post('/dataset/clear', (req, res) => {
1433
  const count = _dataset.length;
1434
- _dataset =[];
1435
  if (fs.existsSync(DATASET_PATH)) fs.unlinkSync(DATASET_PATH);
1436
  log(`Dataset cleared — removed ${count} samples`, "OK");
1437
  res.json({ cleared: count });
 
1431
 
1432
  app.post('/dataset/clear', (req, res) => {
1433
  const count = _dataset.length;
1434
+ _dataset =[];
1435
  if (fs.existsSync(DATASET_PATH)) fs.unlinkSync(DATASET_PATH);
1436
  log(`Dataset cleared — removed ${count} samples`, "OK");
1437
  res.json({ cleared: count });