diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2022-07-21 14:40:31 +0200 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2022-07-21 14:40:31 +0200 |
commit | d6dee92e8548f325c3ccbae33e0d0d508f04358d (patch) | |
tree | 80684b0f22ad00c3d13df4234582159cf7733541 /talerbank/app/views.py | |
parent | a107c5e190fa9e652c5e95810ebb43640139683e (diff) | |
download | bank-d6dee92e8548f325c3ccbae33e0d0d508f04358d.tar.gz bank-d6dee92e8548f325c3ccbae33e0d0d508f04358d.tar.bz2 bank-d6dee92e8548f325c3ccbae33e0d0d508f04358d.zip |
-fix field name
Diffstat (limited to 'talerbank/app/views.py')
-rw-r--r-- | talerbank/app/views.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/talerbank/app/views.py b/talerbank/app/views.py index 22bd618..0d0c47b 100644 --- a/talerbank/app/views.py +++ b/talerbank/app/views.py @@ -791,7 +791,7 @@ def build_history_response(qs, cancelled, user_account): wt_subject=entry.subject, row_id=entry.id, date=dict( - t_m=int(entry.date.timestamp()), + t_s=int(entry.date.timestamp()), t_ms=int(entry.date.timestamp() * 1000) ), ) @@ -936,7 +936,7 @@ def twg_add_incoming(request, user_account, acct_id): { "row_id": wtrans.id, "timestamp": dict( - t_m=(int(wtrans.date.timestamp())), + t_s=(int(wtrans.date.timestamp())), t_ms=(int(wtrans.date.timestamp()) * 1000) ), } @@ -997,7 +997,7 @@ def twg_transfer(request, user_account, acct_id): { "row_id": wtrans.id, "timestamp": dict( - t_m=(int(wtrans.date.timestamp())), + t_s=(int(wtrans.date.timestamp())), t_ms=(int(wtrans.date.timestamp()) * 1000) ), } @@ -1049,7 +1049,7 @@ def twg_history_incoming(request, user_account, acct_id): row_id=item.id, amount=item.amount.stringify(settings.TALER_DIGITS), date=dict( - t_m=(int(item.date.timestamp())), + t_s=(int(item.date.timestamp())), t_ms=(int(item.date.timestamp()) * 1000) ), reserve_pub=rp, @@ -1084,7 +1084,7 @@ def twg_history_outgoing(request, user_account, acct_id): row_id=item.id, amount=item.amount.stringify(settings.TALER_DIGITS), date=dict( - t_m=(int(item.date.timestamp())), + t_s=(int(item.date.timestamp())), t_ms=(int(item.date.timestamp()) * 1000) ), wtid=wtid, |