Incorporate the wiki's Recent Changes API and import data from the last 30 days
This commit is contained in:
parent
dd63fdb183
commit
d22b2b161a
10 changed files with 2803 additions and 856 deletions
|
@ -18,6 +18,7 @@ interface Cli {
|
|||
tooBroad?: boolean,
|
||||
tooBroadUntagged?: boolean,
|
||||
game?: string,
|
||||
recent?: number,
|
||||
limit?: number,
|
||||
}
|
||||
|
||||
|
@ -41,7 +42,11 @@ async function main() {
|
|||
|
||||
try {
|
||||
if (args.cache) {
|
||||
await wikiCache.addNewGames(manifest.data);
|
||||
if (args.recent) {
|
||||
await wikiCache.flagRecentChanges(args.recent);
|
||||
} else {
|
||||
await wikiCache.addNewGames();
|
||||
}
|
||||
}
|
||||
|
||||
if (args.manifest) {
|
||||
|
@ -57,6 +62,7 @@ async function main() {
|
|||
tooBroad: args.tooBroad ?? false,
|
||||
tooBroadUntagged: args.tooBroadUntagged ?? false,
|
||||
game: args.game,
|
||||
recent: args.recent,
|
||||
},
|
||||
args.limit ?? 25,
|
||||
steamCache,
|
||||
|
|
Reference in a new issue