Skip to content

Commit

Permalink
fix: make sure last completed block key includes course run (#144)
Browse files Browse the repository at this point in the history
* fix: make sure last completed block key includes course run

* docs: changelog and release
  • Loading branch information
zacharis278 authored May 27, 2021
1 parent bd04abc commit 7703e52
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ Change Log
Unreleased
~~~~~~~~~~

[4.0.4]- 2021-02-04
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Update ``get_key_to_last_completed_block`` to return ``full_block_key`` instead of ``block_key``

[4.0.2] - 2021-02-04
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Future-proof usage of ``edx_toggles.toggles``
Expand Down
2 changes: 1 addition & 1 deletion completion/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
Completion App
"""

__version__ = '4.0.3'
__version__ = '4.0.4'

default_app_config = 'completion.apps.CompletionAppConfig' # pylint: disable=invalid-name
2 changes: 1 addition & 1 deletion completion/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ def get_key_to_last_completed_block(user, context_key):
last_completed_block = BlockCompletion.get_latest_block_completed(user, context_key)

if last_completed_block is not None:
return last_completed_block.block_key
return last_completed_block.full_block_key

raise UnavailableCompletionData(context_key)

0 comments on commit 7703e52

Please sign in to comment.