Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create a point value of 0 #162

Open
jimender2 opened this issue Nov 13, 2024 · 1 comment
Open

Cannot create a point value of 0 #162

jimender2 opened this issue Nov 13, 2024 · 1 comment

Comments

@jimender2
Copy link

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.

if not challenge.get("value", False) and challenge.get("type", "standard") != "dynamic":

@kjcolley7
Copy link

Probably best to do something like if challenge.get("value", None) is None and ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants