Tweak festival updater

This commit is contained in:
Matt Isenhower
2023-12-02 11:13:54 -08:00
parent 6173693520
commit cce839e3bd
2 changed files with 3 additions and 5 deletions

View File

@@ -24,7 +24,7 @@ const configs = {
quick: {
disableLocalizations: true,
disableXRank: true,
disableFestivalDetails: true,
disableFestivalRankings: true,
},
default: {
disableXRank: true,

View File

@@ -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 {