Skip to content

Commit 35206cc

Browse files
author
robot
committed
fix: 修复数据
1 parent 38d4c9f commit 35206cc

File tree

2 files changed

+19
-32361
lines changed

2 files changed

+19
-32361
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
const fs = require("fs");
2+
const path = require("path");
3+
const mySolutions = require("../static/my/solutions.json");
4+
5+
for (const name in mySolutions) {
6+
for (const i in mySolutions[name]) {
7+
const solution = mySolutions[name][i];
8+
if (solution && solution.body.length < 100) {
9+
console.log(solution);
10+
mySolutions[name][i] = null;
11+
}
12+
}
13+
}
14+
15+
fs.writeFileSync(
16+
path.resolve(__dirname, "../static/my/solutions.json"),
17+
JSON.stringify(mySolutions)
18+
);

0 commit comments

Comments
 (0)