Fixed a bug

This commit is contained in:
Armin Ronacher 2010-05-05 17:47:05 +02:00
parent ffc4c802cb
commit 8a5b86173e

View file

@ -85,7 +85,7 @@ def archive(page):
if page != 1 and not threads: if page != 1 and not threads:
abort(404) abort(404)
return render_template('mailinglist/archive.html', return render_template('mailinglist/archive.html',
page_count=int(ceil(threads / page_count=int(ceil(len(all_threads) /
float(config.THREADS_PER_PAGE))), float(config.THREADS_PER_PAGE))),
page=page, threads=threads) page=page, threads=threads)