CTFd / CTFd/ctfcli

Cannot create a point value of 0

Open
#162 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
215
Forks
95
Avg merge
2h 17m
Merged PRs (30d)
1

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.