sync: Allow using challenge.toml instead of challenge.txt
This commit is contained in:
parent
20c41ec573
commit
2140939364
4 changed files with 12 additions and 6 deletions
|
@ -247,7 +247,7 @@ func main() {
|
|||
nberr := 0
|
||||
theme, exceptions, errs := sync.BuildTheme(sync.GlobalImporter, p)
|
||||
|
||||
if theme != nil && !sync.GlobalImporter.Exists(path.Join(p, "challenge.txt")) {
|
||||
if theme != nil && !sync.GlobalImporter.Exists(path.Join(p, "challenge.txt")) && !sync.GlobalImporter.Exists(path.Join(p, "challenge.toml")) {
|
||||
nberr += len(errs)
|
||||
for _, err := range errs {
|
||||
log.Println(err)
|
||||
|
|
Reference in a new issue