sync: Allow using challenge.toml instead of challenge.txt

This commit is contained in:
nemunaire 2023-05-05 15:25:20 +02:00
parent 20c41ec573
commit 2140939364
4 changed files with 12 additions and 6 deletions

View file

@ -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)