mirror of
https://github.com/MadeBaruna/paimon-moe.git
synced 2025-01-07 11:04:50 +01:00
Update excel import on takagg excel import
This commit is contained in:
parent
bed8b5ec4d
commit
a69029e272
1 changed files with 8 additions and 3 deletions
|
@ -212,8 +212,6 @@
|
||||||
time = time.text;
|
time = time.text;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(time);
|
|
||||||
|
|
||||||
let name = '';
|
let name = '';
|
||||||
if (type === 'weapon') {
|
if (type === 'weapon') {
|
||||||
name = weapons.find((e) => e.name === fullName).id;
|
name = weapons.find((e) => e.name === fullName).id;
|
||||||
|
@ -255,8 +253,15 @@
|
||||||
sheet.eachRow((row, index) => {
|
sheet.eachRow((row, index) => {
|
||||||
if (index === 1) return;
|
if (index === 1) return;
|
||||||
const type = row.getCell(3).text.toLowerCase();
|
const type = row.getCell(3).text.toLowerCase();
|
||||||
const time = row.getCell(1).text;
|
let time = row.getCell(3);
|
||||||
const fullName = row.getCell(2).text;
|
const fullName = row.getCell(2).text;
|
||||||
|
|
||||||
|
if (time.type === ValueType.Date) {
|
||||||
|
time = dayjs.utc(time.value).format('YYYY-MM-DD HH:mm:ss');
|
||||||
|
} else {
|
||||||
|
time = time.text;
|
||||||
|
}
|
||||||
|
|
||||||
let name = '';
|
let name = '';
|
||||||
if (type === 'weapon') {
|
if (type === 'weapon') {
|
||||||
name = weapons.find((e) => e.name === fullName).id;
|
name = weapons.find((e) => e.name === fullName).id;
|
||||||
|
|
Loading…
Reference in a new issue