Create searchGamesWithoutMinimumReview function

This commit is contained in:
baz 2023-11-28 22:05:43 +00:00
parent 2406b50270
commit 2d20201ba2
1 changed files with 9 additions and 0 deletions

View File

@ -46,6 +46,15 @@ async function searchGamesWithMinimumReview(gamename) {
return games; return games;
} }
async function searchGamesWithoutMinimumReview(gamename) {
let body = `search "${gamename}"; `;
body = await body.concat('fields *; limit 25; where (category = 0 | category = 4) & version_parent = null;');
const games = await getGameJson(body);
return games;
}
async function getGameJson(body) { async function getGameJson(body) {
let res; let res;