[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-bank] branch master updated: Fix #5414 (always desce
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-bank] branch master updated: Fix #5414 (always descending order for public histories). |
Date: |
Thu, 06 Sep 2018 11:26:00 +0200 |
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 bfda2ed Fix #5414 (always descending order for public histories).
bfda2ed is described below
commit bfda2ed94fab075be0322a741bf848b2795fc3b1
Author: Marcello Stanisci <address@hidden>
AuthorDate: Thu Sep 6 11:25:29 2018 +0200
Fix #5414 (always descending order for public histories).
---
talerbank/app/views.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/talerbank/app/views.py b/talerbank/app/views.py
index 9fbb38f..99bd9e6 100644
--- a/talerbank/app/views.py
+++ b/talerbank/app/views.py
@@ -417,8 +417,7 @@ def login_via_headers(view_func):
def query_history(bank_account, direction, delta, start, sign):
qs = query_history_raw(bank_account, direction, start, sign)
# '-id' does descending ordering.
- ordering = "-id" if sign in ["-", "*"] else "id"
- return qs.order_by(ordering)[:delta]
+ return qs.order_by("-id")[:delta]
def query_history_raw(bank_account, direction, start, sign):
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-bank] branch master updated: Fix #5414 (always descending order for public histories).,
gnunet <=