Populate templates in wiki cache (part 1)

This commit is contained in:
mtkennerly 2022-06-29 08:01:03 +08:00
parent af8fbd1a42
commit 4405216bdf
No known key found for this signature in database
GPG key ID: E764BE00BE6E6408
4 changed files with 20243 additions and 119 deletions

View file

@ -91,7 +91,7 @@ export class SteamGameCacheFile extends YamlFile<SteamGameCache> {
async refresh(skipUntil: string | undefined, irregularUntagged: boolean, limit: number): Promise<void> {
let i = 0;
let foundSkipUntil = false;
for (const appId of Object.keys(this.data)) {
for (const appId of Object.keys(this.data).sort()) {
if (skipUntil && !foundSkipUntil) {
if (appId === skipUntil) {
foundSkipUntil = true;
@ -108,7 +108,7 @@ export class SteamGameCacheFile extends YamlFile<SteamGameCache> {
}
}
console.log(`Refreshing Steam app ${appId}`)
console.log(`Refreshing Steam app ${appId}`);
await this.getAppInfo(parseInt(appId), true);
i++;