Skip to content

Commit

Permalink
Generate leagues s20
Browse files Browse the repository at this point in the history
  • Loading branch information
SirSaltyy committed Dec 2, 2024
1 parent 70e80b3 commit d99759a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/scripts/generate-next-season.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { generateNextSeason, insertBots } from 'shared/generate-leagues'

if (require.main === module) {
runScript(async ({ pg }) => {
const newSeason = 19
const newSeason = 20
if ((newSeason as any) <= CURRENT_SEASON) {
console.log('Are you sure you want to generate the current season?')
return
Expand Down
2 changes: 1 addition & 1 deletion common/src/leagues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Row } from './supabase/utils'
export type season = (typeof SEASONS)[number]

export const SEASONS = [
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
] as const
export const CURRENT_SEASON = SEASONS[SEASONS.length - 1]

Expand Down

0 comments on commit d99759a

Please sign in to comment.