Settings: avoid transmitting false variables
This commit is contained in:
parent
ea334a8a2f
commit
1a3e14040c
1 changed files with 12 additions and 10 deletions
|
@ -50,27 +50,29 @@ type FICSettings struct {
|
||||||
WChoiceCurCoefficient float64 `json:"wchoiceCurrentCoefficient"`
|
WChoiceCurCoefficient float64 `json:"wchoiceCurrentCoefficient"`
|
||||||
|
|
||||||
// AllowRegistration permits unregistered Team to register themselves.
|
// AllowRegistration permits unregistered Team to register themselves.
|
||||||
AllowRegistration bool `json:"allowRegistration"`
|
AllowRegistration bool `json:"allowRegistration,omitempty"`
|
||||||
// CanJoinTeam permits unregistered account to join an already existing team.
|
// CanJoinTeam permits unregistered account to join an already existing team.
|
||||||
CanJoinTeam bool `json:"canJoinTeam"`
|
CanJoinTeam bool `json:"canJoinTeam,omitempty"`
|
||||||
// DenyTeamCreation forces unregistered account to join a team, it's not possible to create a new team.
|
// DenyTeamCreation forces unregistered account to join a team, it's not possible to create a new team.
|
||||||
DenyTeamCreation bool `json:"denyTeamCreation"`
|
DenyTeamCreation bool `json:"denyTeamCreation,omitempty"`
|
||||||
// DenyNameChange disallow Team to change their name.
|
// DenyNameChange disallow Team to change their name.
|
||||||
DenyNameChange bool `json:"denyNameChange"`
|
DenyNameChange bool `json:"denyNameChange,omitempty"`
|
||||||
// AcceptNewIssue enables the reporting system.
|
// AcceptNewIssue enables the reporting system.
|
||||||
AcceptNewIssue bool `json:"acceptNewIssue"`
|
AcceptNewIssue bool `json:"acceptNewIssue,omitempty"`
|
||||||
|
// QAenabled enables links to QA interface.
|
||||||
|
QAenabled bool `json:"QAenabled,omitempty"`
|
||||||
// EnableResolutionRoute activates the route displaying resolution movies.
|
// EnableResolutionRoute activates the route displaying resolution movies.
|
||||||
EnableResolutionRoute bool `json:"enableResolutionRoute"`
|
EnableResolutionRoute bool `json:"enableResolutionRoute,omitempty"`
|
||||||
// PartialValidation validates each correct given answers, don't expect Team to give all correct answer in a try.
|
// PartialValidation validates each correct given answers, don't expect Team to give all correct answer in a try.
|
||||||
PartialValidation bool `json:"partialValidation"`
|
PartialValidation bool `json:"partialValidation,omitempty"`
|
||||||
// UnlockedChallengeDepth don't show (or permit to solve) to team challenges they are not unlocked through dependancies.
|
// UnlockedChallengeDepth don't show (or permit to solve) to team challenges they are not unlocked through dependancies.
|
||||||
UnlockedChallengeDepth int `json:"unlockedChallengeDepth"`
|
UnlockedChallengeDepth int `json:"unlockedChallengeDepth"`
|
||||||
// SubmissionUniqueness don't count multiple times identical tries.
|
// SubmissionUniqueness don't count multiple times identical tries.
|
||||||
SubmissionUniqueness bool `json:"submissionUniqueness"`
|
SubmissionUniqueness bool `json:"submissionUniqueness,omitempty"`
|
||||||
// DisplayAllFlags doesn't respect the predefined constraint existing between flags.
|
// DisplayAllFlags doesn't respect the predefined constraint existing between flags.
|
||||||
DisplayAllFlags bool `json:"displayAllFlags"`
|
DisplayAllFlags bool `json:"displayAllFlags,omitempty"`
|
||||||
// EventKindness will ask browsers to delay notification interval.
|
// EventKindness will ask browsers to delay notification interval.
|
||||||
EventKindness bool `json:"eventKindness"`
|
EventKindness bool `json:"eventKindness,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ExistsSettings checks if the settings file can by found at the given path.
|
// ExistsSettings checks if the settings file can by found at the given path.
|
||||||
|
|
Reference in a new issue