Remove team's initial_name, replaced by their ID
This commit is contained in:
parent
191c89f7ad
commit
e083da2f72
9 changed files with 26 additions and 65 deletions
|
|
@ -22,7 +22,7 @@ func isStarted() bool {
|
|||
|
||||
// Generate my.json and wait.json for a given team
|
||||
func genTeamMyFile(team fic.Team) error {
|
||||
dirPath := path.Join(TeamsDir, team.InitialName)
|
||||
dirPath := path.Join(TeamsDir, fmt.Sprintf("%d", team.Id))
|
||||
|
||||
if s, err := os.Stat(dirPath); os.IsNotExist(err) {
|
||||
os.MkdirAll(dirPath, 0777)
|
||||
|
|
|
|||
Reference in a new issue