Skip to content

Commit

Permalink
Merge pull request #420 from urbanairship/development
Browse files Browse the repository at this point in the history
Quick bug fix: Default to 0 in RenderContext.get_int(), not None
  • Loading branch information
aalpern committed Mar 24, 2015
2 parents 94b39d2 + b627173 commit d5dea8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tessera/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version_info__ = (0, 6, 0)
__version_info__ = (0, 6, 1)
__version__ = '.'.join(map(str, __version_info__))
4 changes: 2 additions & 2 deletions tessera/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,8 @@ def __init__(self):
def get(self, key, default=None, store_in_session=False):
return _get_param(key, default=default, store_in_session=store_in_session)

def get_int(self, key, default=None, store_in_session=False):
return int(self.get(key, default=default, store_in_session=store_in_session))
def get_int(self, key, default=0, store_in_session=False):
return int(self.get(key, default=default, store_in_session=store_in_session) or 0)

def get_str(self, key, default=None, store_in_session=False):
return str(self.get(key, default=default, store_in_session=store_in_session))
Expand Down

0 comments on commit d5dea8d

Please sign in to comment.