admin: Sane parameters for ResetSettings
This commit is contained in:
parent
0092170dbd
commit
239e8ae88d
@ -341,14 +341,17 @@ func ApplySettings(config *settings.Settings) {
|
|||||||
|
|
||||||
func ResetSettings() error {
|
func ResetSettings() error {
|
||||||
return settings.SaveSettings(path.Join(settings.SettingsDir, settings.SettingsFile), &settings.Settings{
|
return settings.SaveSettings(path.Join(settings.SettingsDir, settings.SettingsFile), &settings.Settings{
|
||||||
WorkInProgress: IsProductionEnv,
|
WorkInProgress: IsProductionEnv,
|
||||||
FirstBlood: fic.FirstBlood,
|
FirstBlood: fic.FirstBlood,
|
||||||
SubmissionCostBase: fic.SubmissionCostBase,
|
SubmissionCostBase: fic.SubmissionCostBase,
|
||||||
ExerciceCurCoefficient: 1,
|
ExerciceCurCoefficient: 1,
|
||||||
HintCurCoefficient: 1,
|
HintCurCoefficient: 1,
|
||||||
WChoiceCurCoefficient: 1,
|
WChoiceCurCoefficient: 1,
|
||||||
GlobalScoreCoefficient: 1,
|
GlobalScoreCoefficient: 1,
|
||||||
DiscountedFactor: 0,
|
DiscountedFactor: 0,
|
||||||
|
UnlockedStandaloneExercices: 10,
|
||||||
|
UnlockedStandaloneExercicesByThemeStepValidation: 1,
|
||||||
|
UnlockedStandaloneExercicesByStandaloneExerciceValidation: 0,
|
||||||
AllowRegistration: false,
|
AllowRegistration: false,
|
||||||
CanJoinTeam: false,
|
CanJoinTeam: false,
|
||||||
DenyTeamCreation: false,
|
DenyTeamCreation: false,
|
||||||
@ -358,7 +361,8 @@ func ResetSettings() error {
|
|||||||
EnableResolutionRoute: false,
|
EnableResolutionRoute: false,
|
||||||
PartialValidation: true,
|
PartialValidation: true,
|
||||||
UnlockedChallengeDepth: 0,
|
UnlockedChallengeDepth: 0,
|
||||||
SubmissionUniqueness: false,
|
SubmissionUniqueness: true,
|
||||||
|
CountOnlyNotGoodTries: true,
|
||||||
DisplayAllFlags: false,
|
DisplayAllFlags: false,
|
||||||
DisplayMCQBadCount: false,
|
DisplayMCQBadCount: false,
|
||||||
EventKindness: false,
|
EventKindness: false,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user