Unverified Commit e69bf768 by John Eskew Committed by GitHub

Merge pull request #13 from edx/jeskew/bump_xblock_requirement

Unpin the XBlock requirement version's upper bound. Bump version.
parents 095624ea 277d899b
...@@ -700,11 +700,11 @@ class DictUserStateClient(XBlockUserStateClient): ...@@ -700,11 +700,11 @@ class DictUserStateClient(XBlockUserStateClient):
increments. If you're using this method, you should be running in an increments. If you're using this method, you should be running in an
async task. async task.
""" """
for (_, key, scope), entries in self._history.iteritems(): for (_, key, one_scope), entries in self._history.iteritems():
if entries[0].state is None: if entries[0].state is None:
continue continue
if key == block_key and scope == scope: if key == block_key and one_scope == scope:
yield entries[0] yield entries[0]
def iter_all_for_course(self, course_key, block_type=None, scope=Scope.user_state, batch_size=None): def iter_all_for_course(self, course_key, block_type=None, scope=Scope.user_state, batch_size=None):
...@@ -713,13 +713,13 @@ class DictUserStateClient(XBlockUserStateClient): ...@@ -713,13 +713,13 @@ class DictUserStateClient(XBlockUserStateClient):
increments. If you're using this method, you should be running in an increments. If you're using this method, you should be running in an
async task. async task.
""" """
for (_, key, scope), entries in self._history.iteritems(): for (_, key, one_scope), entries in self._history.iteritems():
if entries[0].state is None: if entries[0].state is None:
continue continue
if ( if (
key.course_key == course_key and key.course_key == course_key and
scope == scope and one_scope == scope and
(block_type is None or key.block_type == block_type) (block_type is None or key.block_type == block_type)
): ):
......
...@@ -2,13 +2,13 @@ from setuptools import setup ...@@ -2,13 +2,13 @@ from setuptools import setup
setup( setup(
name="edx_user_state_client", name="edx_user_state_client",
version="1.0.1", version="1.0.2",
packages=[ packages=[
"edx_user_state_client", "edx_user_state_client",
], ],
install_requires=[ install_requires=[
"PyContracts>=1.7.1,<2.0.0", "PyContracts>=1.7.1,<2.0.0",
"edx-opaque-keys>=0.2.0,<1.0.0", "edx-opaque-keys>=0.2.0,<1.0.0",
"xblock>=0.4,<1.0.0", "xblock>=0.4,<2.0.0",
] ]
) )
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment