Skip to content

Commit

Permalink
Seasons: Fix badges being awarded incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
mia-pi-git committed Aug 22, 2024
1 parent 5b5653c commit 7ea985e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/chat-plugins/seasons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export async function updateBadgeholders() {
if (!data.badgeholders[period]) {
data.badgeholders[period] = {};
}
for (const formatName of data.formatSchedule[findPeriod()]) {
for (const formatName of data.formatSchedule[period]) {
const formatid = `gen${Dex.gen}${formatName}`;
const response = await getLadderTop(formatid);
if (!response) continue; // ??
Expand Down

0 comments on commit 7ea985e

Please sign in to comment.