Merge pull request #4 from rakanalh/float_div
Issue fix for float division difference between Py2&3
This commit is contained in:
commit
e9c30f46d5
1 changed files with 2 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
|||
from __future__ import division
|
||||
from future.utils import raise_from
|
||||
|
||||
import math
|
||||
|
@ -162,7 +163,7 @@ class PocketApp:
|
|||
if word_count == 0:
|
||||
reading_time = -1
|
||||
else:
|
||||
reading_time = math.ceil(word_count / wpm)
|
||||
reading_time = int(math.ceil(word_count / wpm))
|
||||
|
||||
title = article['resolved_title']
|
||||
if not title:
|
||||
|
|
Loading…
Reference in a new issue