admin: apply settings to internal structures
This allows scores and rank to be properly generated in admin interface.
This commit is contained in:
parent
8edc8e697c
commit
7edd70c3c0
2 changed files with 12 additions and 0 deletions
|
|
@ -177,6 +177,10 @@ func main() {
|
|||
}); err != nil {
|
||||
log.Fatal("Unable to initialize settings.json:", err)
|
||||
}
|
||||
} else if config, err := settings.ReadSettings(path.Join(settings.SettingsDir, settings.SettingsFile)); err != nil {
|
||||
log.Fatal("Unable to read settings.json:", err)
|
||||
} else {
|
||||
api.ApplySettings(config)
|
||||
}
|
||||
|
||||
// Database connection
|
||||
|
|
|
|||
Reference in a new issue