gnunet-svn
[Top][All Lists]
Advanced

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

[taler-bank] branch master updated: Protocol change: t_ms becomes t_m.


From: gnunet
Subject: [taler-bank] branch master updated: Protocol change: t_ms becomes t_m.
Date: Tue, 14 Dec 2021 18:43:00 +0100

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

ms pushed a commit to branch master
in repository bank.

The following commit(s) were added to refs/heads/master by this push:
     new e2f0fe8  Protocol change: t_ms becomes t_m.
e2f0fe8 is described below

commit e2f0fe8f4d32ccf90bfaac0d95ef17aa288979f5
Author: ms <ms@taler.net>
AuthorDate: Tue Dec 14 18:42:31 2021 +0100

    Protocol change: t_ms becomes t_m.
---
 talerbank/app/views.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/talerbank/app/views.py b/talerbank/app/views.py
index 977ecaf..f388f44 100644
--- a/talerbank/app/views.py
+++ b/talerbank/app/views.py
@@ -788,7 +788,7 @@ def build_history_response(qs, cancelled, user_account):
                 sign=sign_,
                 wt_subject=entry.subject,
                 row_id=entry.id,
-                date=dict(t_ms=int(entry.date.timestamp()) * 1000),
+                date=dict(t_m=int(entry.date.timestamp())),
             )
         )
     return history
@@ -930,7 +930,7 @@ def twg_add_incoming(request, user_account, acct_id):
         return JsonResponse(
             {
                 "row_id": wtrans.id,
-                "timestamp": dict(t_ms=(int(wtrans.date.timestamp()) * 1000)),
+                "timestamp": dict(t_m=(int(wtrans.date.timestamp()))),
             }
         )
     # Here means this public key was used already: must fail.
@@ -988,7 +988,7 @@ def twg_transfer(request, user_account, acct_id):
     return JsonResponse(
         {
             "row_id": wtrans.id,
-            "timestamp": dict(t_ms=(int(wtrans.date.timestamp()) * 1000)),
+            "timestamp": dict(t_m=(int(wtrans.date.timestamp()))),
         }
     )
 
@@ -1037,7 +1037,7 @@ def twg_history_incoming(request, user_account, acct_id):
             dict(
                 row_id=item.id,
                 amount=item.amount.stringify(settings.TALER_DIGITS),
-                date=dict(t_ms=(int(item.date.timestamp()) * 1000)),
+                date=dict(t_m=(int(item.date.timestamp()))),
                 reserve_pub=rp,
                 credit_account=get_payto_from_account(request, 
item.credit_account),
                 debit_account=get_payto_from_account(request, 
item.debit_account),
@@ -1069,7 +1069,7 @@ def twg_history_outgoing(request, user_account, acct_id):
             dict(
                 row_id=item.id,
                 amount=item.amount.stringify(settings.TALER_DIGITS),
-                date=dict(t_ms=(int(item.date.timestamp()) * 1000)),
+                date=dict(t_m=(int(item.date.timestamp()))),
                 wtid=wtid,
                 exchange_base_url=exchange_base_url,
                 credit_account=get_payto_from_account(request, 
item.credit_account),

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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