log_source: fix get_date_paged returning max as float
authorTero Marttila <terom@fixme.fi>
Tue, 28 Feb 2012 13:08:00 +0200
changeset 146 22d6b9525ae0
parent 144 35c4c56f1376
child 147 95b0a3fdd207
log_source: fix get_date_paged returning max as float
qmsk/irclogs/log_source.py
--- a/qmsk/irclogs/log_source.py	Sun Sep 13 20:11:00 2009 +0300
+++ b/qmsk/irclogs/log_source.py	Tue Feb 28 13:08:00 2012 +0200
@@ -161,7 +161,7 @@
             lines.append(line)
         
         # calculate max_pages
-        max_pages = math.ceil(float(line_count) / count)
+        max_pages = int(math.ceil(float(line_count) / count))
         
         # return
         return (page, max_pages, lines)