Tie new versions up

This commit is contained in:
zkldi
2021-05-24 17:28:29 +01:00
parent 0712f8ca3f
commit d1442d98e2
5 changed files with 22 additions and 35 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ import monk from "monk";
import fs from "fs";
import path from "path";
import { Command } from "commander";
import CreateLogCtx from "../src/logger";
import CreateLogCtx from "../src/common/logger";
const program = new Command();
@@ -19,7 +19,7 @@ const ktBlackDB = monk(`${process.env.MONGO_BASE_URL}/ktblackdb`);
(async () => {
logger.info(`Fetching data for ${collection}...`);
let data = await ktBlackDB.get(collection).find({}, { projection: { _id: 0 } });
const data = await ktBlackDB.get(collection).find({}, { projection: { _id: 0 } });
logger.info(`Fetched ${data.length} documents, Writing...`);
@@ -27,7 +27,7 @@ export const ConverterIRFervidexStatic: ConverterFunction<
if (!chart) {
throw new KTDataNotFoundFailure(
`Could not find chart with songID ${data.song_id} (${playtype} ${difficulty})`,
`Could not find chart with songID ${data.song_id} (${playtype} ${difficulty} Version ${context.version})`,
importType,
data,
context
@@ -1,4 +1,7 @@
{
"_id": {
"$oid": "6088306a65303f57143cab68"
},
"rgcID": null,
"chartID": "c2311194e3897ddb5745b1760d2c0141f933e683",
"difficulty": "ANOTHER",
@@ -9,42 +12,26 @@
"flags": {
"IN BASE GAME": true,
"OMNIMIX": true,
"N-1": true
"N-1": true,
"2dxtra": false
},
"data": {
"inGameID": 1000,
"notecount": 786
"notecount": 786,
"arcChartID": "CYjwAuz7Yq9"
},
"isPrimary": true,
"versions": [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
"11",
"12",
"13",
"14",
"15",
"16",
"17",
"18",
"19",
"20",
"21",
"22",
"23",
"24",
"25",
"26",
"27-omni",
"26-omni",
"27",
"28"
"26",
"inf",
"16-cs",
"12-cs",
"10-cs",
"8-cs",
"7-cs",
"bmus"
]
}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long