Clean up {{file}} usage in data paths
This commit is contained in:
parent
9d189021c9
commit
553fb8db75
7 changed files with 249 additions and 197 deletions
|
@ -466,12 +466,18 @@ export async function getGame(pageTitle: string, cache: WikiGameCache): Promise<
|
|||
game.steam = { id: steamId };
|
||||
}
|
||||
} else if (template.name === "Game data/saves" || template.name === "Game data/config") {
|
||||
// console.log("\n\n\n\n\n\n--------------------------------------------------------------------------")
|
||||
// console.log(template);
|
||||
for (const cellKey of Object.getOwnPropertyNames(template.parameters)) {
|
||||
if (cellKey === "0" || cellKey === "1") {
|
||||
continue;
|
||||
}
|
||||
const cell = template.parameters[cellKey];
|
||||
// console.log("======================================")
|
||||
// console.log(cell)
|
||||
const [rawPath, regular] = getRawPathFromCell(cell);
|
||||
// console.log("-----------------");
|
||||
// console.log(`${regular} : ${rawPath}`);
|
||||
|
||||
if (!regular) {
|
||||
irregularPath += 1;
|
||||
|
|
Reference in a new issue