fausecteam / ctf-gameserver

FAUST Gameserver for attack-defense CTFs
https://ctf-gameserver.org
ISC License
64 stars 27 forks source link

Web: CTFTime doesn't like floats in scoreboard JSON #45

Closed F30 closed 4 years ago

F30 commented 6 years ago

We currently return the raw floating-point scores in the CTFTime scoreboard format ("scoreboard.json"). However, CTFTime doesn't like that.

I had success with rounding everything to the nearest integer, the spec says (at least for the overall "score", may also be true for task "points"):

Decimal up to 4 digits after delimiter

F30 commented 5 years ago

This appears to be fixed in CTFTime now.

F30 commented 5 years ago

Well OK, we probably still should respect what the spec says and use 4 decimals.