Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion xblocks_contrib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
from .video import VideoBlock
from .word_cloud import WordCloudBlock

__version__ = "0.17.0"
__version__ = "0.17.1"
7 changes: 7 additions & 0 deletions xblocks_contrib/problem/capa_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,13 @@ def get_progress(self):
else:
raw_earned = raw_possible = 0

if not self.attempts:
# Nothing has ever been submitted for this user/block, so there's no
# real grade history to protect. Reflect the problem's current
# definition instead of a stale persisted score (e.g. left over from
# before an author edited the problem after it was first previewed).
raw_possible = self.max_score() or raw_possible
Comment on lines +998 to +1003
Comment on lines +998 to +1003

if raw_possible > 0:
if self.weight is not None:
# Progress objects expect total > 0
Expand Down