Skip to content

Commit

Permalink
Merge pull request #318 from hamster007Github/scrapedduck_extension
Browse files Browse the repository at this point in the history
process extra data generic
  • Loading branch information
ReuschelCGN authored Aug 29, 2024
2 parents a8ba7f7 + c6310ea commit 614c09c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/pogoEventParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class PogoEventParser {
// Timeout Logic
}, timeoutMs)

const url = 'https://raw.githubusercontent.com/bigfoott/ScrapedDuck/data/events.json'
const url = 'https://raw.githubusercontent.com/hamster007Github/ScrapedDuck/data/events.json'
const result = await axios({
method: 'get',
url,
Expand All @@ -48,15 +48,15 @@ class PogoEventParser {
// create filtered pokemon spawn event list
// for now, only filter by eventType until spawn information is available
let filteredEvents = []
for (const event of events.filter((x) => x.eventType === 'community-day' || x.eventType === 'pokemon-spotlight-hour')) {
for (const event of events.filter((x) => x.eventType === 'community-day' || x.eventType === 'pokemon-spotlight-hour' || x.extraData.generic.hasSpawns)) {
filteredEvents.push(event)
}
this.spawnEvents = filteredEvents

// create filtered quest event list
// for now, only filter by eventType until field research task information is available
filteredEvents = []
for (const event of events.filter((x) => x.eventType === 'community-day')) {
for (const event of events.filter((x) => x.eventType === 'community-day' || x.extraData.generic.hasFieldResearchTasks)) {
filteredEvents.push(event)
}
this.questEvents = filteredEvents
Expand Down

0 comments on commit 614c09c

Please sign in to comment.