Skip to content
This repository has been archived by the owner on Mar 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #11 from natgeosociety/al-1418-bugfix
Browse files Browse the repository at this point in the history
[AL-1418] Fix for lesson pages throwing a 500 error
  • Loading branch information
lterebesi committed Mar 6, 2020
2 parents 9eb03f7 + 42c8bd9 commit d94ba03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion curricula/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
__version_info__ = {
'major': 3,
'minor': 0,
'micro': 0,
'micro': 1,
'releaselevel': 'final',
'serial': 1,
}
Expand Down
2 changes: 1 addition & 1 deletion curricula/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def activities_info(ids, l_id=None):
learning_objs |= set([objrel.objective for objrel in objectives_list])
resources |= set(activity.resources.all().values_list('object_type_id', 'object_id'))

if activity.internet_access_type > inet_access:
if activity.internet_access_type and activity.internet_access_type > inet_access:
inet_access = activity.internet_access_type
plugins |= set(activity.plugin_types.values_list('id', flat=True))
tech |= set(activity.tech_setup_types.values_list('id', flat=True))
Expand Down

0 comments on commit d94ba03

Please sign in to comment.