feat: isolated first archived season number

This commit is contained in:
TrèsAbhi committed 2023-11-01 11:27:41 -05:00
1 parent d991be4934
commit 882e61ff44
3 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -16,6 +16,7 @@ import useSWR from 'swr';
import { create } from 'zustand';
import * as Leaderboard from '../../../components/Leaderboard';
import PageWrapper from '../../../components/PageWrapper';
import { FIRST_ARCHIVED_RATINGS_SEASON } from '../../../constants/ratings';
import { REGIONS, REGION_NAMES, Region } from '../../../constants/regions';
import { getAccountInfo } from '../../../core/blitz/getAccountInfo';
import { getClanAccountInfo } from '../../../core/blitz/getClanAccountInfo';
@@ -25,7 +26,6 @@ import { getArchivedRatingsLeaderboardAPI } from '../../../core/blitzkrieg/getAr
import { numberFetcher } from '../../../core/blitzkrieg/numberFetcher';
import { noArrows } from './page.css';
export const FIRST_ARCHIVED_RATINGS_SEASON = 49;
const ROWS_PER_PAGE = 64;
const useUsernameCache = create<Record<Region, Record<number, string>>>(() => ({
+1 -1
View File
@@ -6,10 +6,10 @@ import {
} from 'discord.js';
import { range } from 'lodash';
import { BlitzkriegRatingsLeaderboard } from '../../scripts/buildRatingsLeaderboard';
import { FIRST_ARCHIVED_RATINGS_SEASON } from '../app/tools/ratings/page';
import * as Leaderboard from '../components/Leaderboard';
import TitleBar from '../components/TitleBar';
import Wrapper from '../components/Wrapper';
import { FIRST_ARCHIVED_RATINGS_SEASON } from '../constants/ratings';
import { REGION_NAMES_SHORT, Region } from '../constants/regions';
import { getAccountInfo } from '../core/blitz/getAccountInfo';
import { getClanAccountInfo } from '../core/blitz/getClanAccountInfo';
+1
View File
@@ -0,0 +1 @@
export const FIRST_ARCHIVED_RATINGS_SEASON = 49;