Skip to content

Commit

Permalink
Merge pull request #11 from matthugs/matthugs/fix-test-for-anonymous-…
Browse files Browse the repository at this point in the history
…user

Fixing test failures
  • Loading branch information
Dave St.Germain authored May 1, 2019
2 parents ee81d87 + f1d52d1 commit 7761ca2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion edx_when/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

from __future__ import absolute_import, unicode_literals

__version__ = '0.1.3'
__version__ = '0.1.4'

default_app_config = 'edx_when.apps.EdxWhenConfig' # pylint: disable=invalid-name
2 changes: 1 addition & 1 deletion edx_when/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def get_dates_for_course(course_id, user=None, use_cached=True):
user_id = user
else:
user_id = user.id if not user.is_anonymous else ''
cache_key += '.%d' % user_id
cache_key += '.%s' % user_id
else:
user_id = None
dates = DEFAULT_REQUEST_CACHE.data.get(cache_key, None)
Expand Down

0 comments on commit 7761ca2

Please sign in to comment.