This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
const XLSX = require('xlsx');
|
||||
const fs = require("fs");
|
||||
const parseAbsence = require('./utils/parseAbsence');
|
||||
const parseTeachers = require('./utils/parseTeachers');
|
||||
import XLSX from "xlsx";
|
||||
import fs from "fs";
|
||||
import parseAbsence from "./utils/parseAbsence.js";
|
||||
import parseTeachers from "./utils/parseTeachers.js";
|
||||
|
||||
async function parseThisShit(downloadedFilePath) {
|
||||
export default async function parseThisShit(downloadedFilePath) {
|
||||
const workbook = XLSX.readFile(downloadedFilePath);
|
||||
const sheetNames = workbook.SheetNames;
|
||||
|
||||
@@ -138,6 +138,4 @@ async function parseThisShit(downloadedFilePath) {
|
||||
fs.writeFileSync('db/current.json', JSON.stringify(data));
|
||||
}
|
||||
|
||||
module.exports = parseThisShit;
|
||||
|
||||
// parseThisShit("downloads/table.xlsx");
|
||||
|
||||
Reference in New Issue
Block a user