mirror of
https://github.com/misenhower/splatoon3.ink.git
synced 2026-08-20 07:34:28 -05:00
Tweak festival updater
This commit is contained in:
@@ -24,7 +24,7 @@ const configs = {
|
||||
quick: {
|
||||
disableLocalizations: true,
|
||||
disableXRank: true,
|
||||
disableFestivalDetails: true,
|
||||
disableFestivalRankings: true,
|
||||
},
|
||||
default: {
|
||||
disableXRank: true,
|
||||
|
||||
@@ -65,15 +65,13 @@ export default class FestivalUpdater extends DataUpdater
|
||||
|
||||
// Get the detailed data for each Splatfest
|
||||
// (unless we're getting localization-specific data)
|
||||
let shouldGetDetails = locale === this.defaultLocale
|
||||
&& !this.settings.disableFestivalDetails;
|
||||
if (shouldGetDetails) {
|
||||
if (locale === this.defaultLocale) {
|
||||
for (let node of result.data.festRecords.nodes) {
|
||||
let detailResult = await this.getFestivalDetails(node);
|
||||
|
||||
Object.assign(node, detailResult.data.fest);
|
||||
|
||||
if (node.teams.find(t => t.result)) {
|
||||
if (!this.settings.disableFestivalRankings && node.teams.find(t => t.result)) {
|
||||
let rankingUpdater = new FestivalRankingUpdater(this.region, node.id, node.endTime);
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user