mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Fix filter error
This commit is contained in:
parent
c49f6566c3
commit
04aea445df
1 changed files with 12 additions and 3 deletions
|
|
@ -3,7 +3,7 @@ import { promises as fs } from 'fs'
|
||||||
import slugify from 'slugify'
|
import slugify from 'slugify'
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
|
|
||||||
import { statuses } from './build-app-list'
|
// import { statuses } from './build-app-list'
|
||||||
|
|
||||||
|
|
||||||
// console.log('process.env.GAMES_SOURCE', process.env.GAMES_SOURCE)
|
// console.log('process.env.GAMES_SOURCE', process.env.GAMES_SOURCE)
|
||||||
|
|
@ -82,12 +82,21 @@ export default async function () {
|
||||||
})
|
})
|
||||||
|
|
||||||
// Game already has entry
|
// Game already has entry
|
||||||
if (gameIndex !== -1) continue
|
if (gameIndex !== -1) {
|
||||||
|
|
||||||
|
gameList[gameIndex].reports.push(game)
|
||||||
|
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
const status = parseStatus(game)
|
const status = parseStatus(game)
|
||||||
|
|
||||||
// console.log('status', status)
|
if (typeof status !== 'string') {
|
||||||
|
console.warn('Non-string status', game)
|
||||||
|
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
gameList.push({
|
gameList.push({
|
||||||
name: game.Games,
|
name: game.Games,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue