Find attempted questions by difficulty #64
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The new changes, find out the number of checked questions and group them by difficulty. Currently, it is just printing on the dev console and not on the UI. But if the logic seems correct we can go forward with that afterward.
Steps:
Firstly find the number of checked questions from the local storage and find their difficulty level and store them in a dictionary
Initialize this as our state
Then on every check box state change, we increment the corresponding difficulty value (or decrement it if check box in unchecked)
Issues #39 and #59 correspond to this.