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: deploy FIXME


From: gnunet
Subject: [GNUnet-SVN] [taler-bank] branch master updated: deploy FIXME
Date: Sat, 06 May 2017 00:09:43 +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 4c48839  deploy FIXME
4c48839 is described below

commit 4c488395ec2fcd6562297c3134244c57563ffbeb
Author: Marcello Stanisci <address@hidden>
AuthorDate: Sat May 6 00:09:33 2017 +0200

    deploy FIXME
---
 talerbank/app/views.py | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/talerbank/app/views.py b/talerbank/app/views.py
index beb131c..d88a763 100644
--- a/talerbank/app/views.py
+++ b/talerbank/app/views.py
@@ -350,7 +350,12 @@ def history(request):
     # start
     start = request.GET.get("start")
 
-    # sign (past/future)
+    # sign (past/future) FIXME: if not given, the call
+    # must return the latest 'delta' entries: this code
+    # does not currently do that!
+    # The query should also apply some ordering to the
+    # records.
+
     sign = parsed_delta.group(1)
     if not start:
         sign = "-"
@@ -375,7 +380,7 @@ def history(request):
     if "debit" == direction:
         query_string = Q(debit_account=target_account)
 
-    qs = BankTransaction.objects.filter(query_string)[:delta]
+    qs = BankTransaction.objects.filter(query_string, sign)[:delta]
     for entry in qs:
         counterpart = entry.credit_account.user.username
         sign = "-"

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



reply via email to

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