xRuiAlves / lichess-tournament-creator

CLI tool to create Lichess chess tournaments
MIT License
5 stars 2 forks source link

[Solved] No Increment Error #13

Open eliankeil opened 2 years ago

eliankeil commented 2 years ago

Error when increment is 0

xRuiAlves commented 2 years ago

Thanks for flagging! Something must have changed in Lichess' API. I'll give it a look whenever possible 👍

eliankeil commented 2 years ago

(i no speak english) the error is only when use a "file.json" for multiple tournaments, Increment need a number >0. Error when is 0 or null (Minimum need 1, 2, 3, etc)

But. when uses a "$ lichess-tournament-creator Swiss 'title' 'date' 'round' 'time' 'increment' (here '0' is OK, is correct)

The problem, i think, is in the validate file for a 'file.json' but i can't solved

GRACIAS!!

xRuiAlves commented 2 years ago

Le daré un vistazo. ¡Gracias!

eliankeil commented 2 years ago

Oh! I just found the problem with the number zero. The number zero has to be in quotes, so "0" and everything works fine. You need to update this information on the main page, in the instructions for the file.json file. Simply add quotes to the 'duration' and 'increment' value numbers.

You are a genius, I thank you so much for this contribution!!! It's incredible to me. Thank you thank you thank you!!

**In the future it would be great to add the "waiting time between rounds (for Swiss)" and "tournament description"

xRuiAlves commented 2 years ago

Cool, thanks @eliankeil ! I will expand it to support the "waiting time between rounds (for Swiss)" and "tournament description". 🎉