fix(scripts): skip summary type
parent
8e46df1868
commit
d136fc563a
|
|
@ -21,6 +21,8 @@ const bosses = new Map<number, string>();
|
|||
for (const file of files) {
|
||||
try {
|
||||
const content: FileExporterType = JSON.parse(await Deno.readTextFile(file));
|
||||
if (content.type === "SUMMARY") continue;
|
||||
|
||||
const { data } = content;
|
||||
if (data.type === "CoopInfo") {
|
||||
const eventIds = data.detail.waveResults.map((i) => i.eventWave).filter(
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ const ids = new Map<string, string>();
|
|||
for (const file of files) {
|
||||
try {
|
||||
const content: FileExporterType = JSON.parse(await Deno.readTextFile(file));
|
||||
if (content.type === "SUMMARY") continue;
|
||||
const id = content.data.detail.id;
|
||||
const rawId = base64.decode(id);
|
||||
const uuid = new TextDecoder().decode(rawId.slice(rawId.length - 36));
|
||||
|
|
|
|||
Loading…
Reference in New Issue