Merge pull request #4 from rakanalh/float_div

Issue fix for float division difference between Py2&3
This commit is contained in:
Rakan Alhneiti 2016-02-19 20:29:46 +01:00
commit e9c30f46d5

View file

@ -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: