ctfcli icon indicating copy to clipboard operation
ctfcli copied to clipboard

Cannot create a point value of 0

Open jimender2 opened this issue 1 year ago • 1 comments

If I have a challenge that I want to have with a value of 0, I get an error saying 'Challenge does not provide a value'

I think this is the offending line and there should be an extra bit of logic to check if the value is 0 or not. Temp solved this by setting values = 1 for the challenges but I dont like that solution.

https://github.com/CTFd/ctfcli/blob/d8e08daedd6d22159f5978e1619b9d7073aa07f8/ctfcli/core/challenge.py#L660

jimender2 avatar Nov 13 '24 01:11 jimender2