Commit db3945f8 authored by Howl's avatar Howl
Browse files

add duplicate score checking

parent f7e59e2c
Loading
Loading
Loading
Loading
+7 −0
Changes for cron.go: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ type config struct {
	DeleteReplayCache       bool
	BuildLeaderboards       bool
	CalculatePP             bool
	FixScoreDuplicates      bool `description:"might take a VERY long time"`

	LogQueries bool `description:"You don't wanna do this in prod."`
	Workers    int  `description:"The number of goroutines which should execute queries. Increasing it may make cron faster, depending on your system."`
@@ -121,6 +122,12 @@ func main() {
		go opCalculatePP()
		color.Green(" ok!")
	}
	if c.FixScoreDuplicates {
		fmt.Print("Starting fixing score duplicates...")
		wg.Add(1)
		go opFixScoreDuplicates()
		color.Green(" ok!")
	}

	wg.Wait()
	color.Green("Data elaboration has been terminated.")