Skip to content

Commit

Permalink
Update leaderboards after full recalc
Browse files Browse the repository at this point in the history
  • Loading branch information
Swan committed Nov 24, 2024
1 parent b298048 commit 97c7989
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cmd/console/commands/clan_recalc.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package commands

import (
"github.com/Quaver/api2/db"
"github.com/Quaver/api2/enums"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
)
Expand All @@ -23,5 +24,14 @@ var ClanRecalculateCommand = &cobra.Command{
return
}
}

for _, clan := range clans {
for i := 1; i <= 2; i++ {
if err := db.UpdateClanLeaderboard(clan, enums.GameMode(i)); err != nil {
logrus.Error(err)
return
}
}
}
},
}

0 comments on commit 97c7989

Please sign in to comment.