refactor: rename assets/ to data/ for raw Excel inputs

This commit is contained in:
tiennm99 committed 2026-04-14 21:20:10 +07:00
1 parent e165e3c5b6
commit d968459b9d
120 files changed
+3 -3

No files matched your search

+3 -3
View File
@@ -5,7 +5,7 @@ import path from "path";
import { fileURLToPath } from "url";
const __dirname = path.dirname(fileURLToPath(import.meta.url));
const ASSETS_DIR = path.join(__dirname, "..", "assets");
const DATA_DIR = path.join(__dirname, "..", "data");
const DB_PATH = path.join(__dirname, "..", "public", "thptqg2016.db");
// Score patterns for the DIEM_THI string format
@@ -194,9 +194,9 @@ function main() {
`);
// Collect all Excel files (.xlsx and .xls)
const files = fs.readdirSync(ASSETS_DIR)
const files = fs.readdirSync(DATA_DIR)
.filter((f) => f.endsWith(".xlsx") || f.endsWith(".xls"))
.map((f) => path.join(ASSETS_DIR, f));
.map((f) => path.join(DATA_DIR, f));
let totalRows = 0;
let errorCount = 0;