mirror of
https://github.com/tiennm99/thptqg.git
synced 2026-10-16 16:15:54 +00:00
refactor: rename assets/ to data/ for raw Excel inputs
This commit is contained in:
1 parent
e165e3c5b6
commit
d968459b9d
120 files changed
+3
-3
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user