Permalink
Browse files

Fix strange float casting problems in python

  • Loading branch information...
1 parent ce499f4 commit 8c21b3bd348536ae126b5921c49728f1b852b341 @mhagander mhagander committed Aug 17, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 pgweb/docs/views.py
View
@@ -91,11 +91,11 @@ def __init__(self, version):
self.a4pdf = self._find_pdf('A4')
self.uspdf = self._find_pdf('US')
# Some versions have, ahem, strange index filenames
- if self.__version.tree < 6.4:
+ if self.__version.tree < Decimal('6.4'):
self.indexname = 'book01.htm'
- elif self.__version.tree < 7.0:
+ elif self.__version.tree < Decimal('7.0'):
self.indexname = 'postgres.htm'
- elif self.__version.tree < 7.2:
+ elif self.__version.tree < Decimal('7.2'):
self.indexname = 'postgres.html'
else:
self.indexname = 'index.html'

0 comments on commit 8c21b3b

Please sign in to comment.