Skip to content

Commit

Permalink
MCKIN-8752: Make max_score a method instead of a property. (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcdyer authored and xitij2000 committed Nov 1, 2018
1 parent aff325e commit 6c1a4ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion image_explorer/image_explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ class ImageExplorerBlock(XBlock): # pylint: disable=no-init
"""

has_score = True
max_score = 1.0
completion_mode = XBlockCompletionMode.COMPLETABLE

display_name = String(
Expand Down Expand Up @@ -91,6 +90,9 @@ class ImageExplorerBlock(XBlock): # pylint: disable=no-init
</image_explorer>
"""))

def max_score(self):
return 1.0

@property
def hotspot_coordinates_centered(self):
if self._hotspot_coordinates_centered:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def package_data(pkg, root_list):

setup(
name='xblock-image-explorer',
version='1.1.0',
version='1.1.1',
description='XBlock - Image Explorer',
packages=['image_explorer'],
install_requires=[
Expand Down

0 comments on commit 6c1a4ec

Please sign in to comment.