gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-bank] branch master updated: fix 1-page long histori


From: gnunet
Subject: [GNUnet-SVN] [taler-bank] branch master updated: fix 1-page long histories
Date: Tue, 16 Jan 2018 09:23:13 +0100

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository bank.

The following commit(s) were added to refs/heads/master by this push:
     new 8d9993d  fix 1-page long histories
8d9993d is described below

commit 8d9993dffd5b21139515acbdc310cf7695de3ec3
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue Jan 16 09:22:53 2018 +0100

    fix 1-page long histories
---
 talerbank/app/views.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/talerbank/app/views.py b/talerbank/app/views.py
index fa6efa4..62f76b1 100644
--- a/talerbank/app/views.py
+++ b/talerbank/app/views.py
@@ -387,7 +387,9 @@ def serve_public_accounts(request, name=None, page=None):
     num_pages = request.session["public_history_account"][0] / DELTA
     pages = list(
         range(max(1, page - 3),
-              min(page + 4, math.ceil(num_pages))))
+              # need +1 because the range is not inclusive for
+              # the upper limit.
+              min(page + 4, (math.ceil(num_pages) + 1))))
     context = dict(
         current_page=page,
         back = page - 1 if pages[0] > 1 else None,

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]