[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-bank] branch master updated: fix the amount format a
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-bank] branch master updated: fix the amount format accepted by the wallet when withdrawing |
Date: |
Tue, 31 Oct 2017 16:09:59 +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 a57e0fb fix the amount format accepted by the wallet when withdrawing
a57e0fb is described below
commit a57e0fbf751c9feb07f8eab1eeee78594113194a
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue Oct 31 16:09:21 2017 +0100
fix the amount format accepted by the wallet when withdrawing
---
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 fb2d4f2..c69f2a4 100644
--- a/talerbank/app/views.py
+++ b/talerbank/app/views.py
@@ -277,7 +277,6 @@ def register(request):
user_account = BankAccount(user=user)
user_account.save()
bank_internal_account = BankAccount.objects.get(account_no=1)
- print('bank_internal_account currency: ' +
bank_internal_account.amount.currency)
try:
wire_transfer(Amount(settings.TALER_CURRENCY, 100, 0),
bank_internal_account, user_account, "Joining bonus")
except DebtLimitExceededException:
@@ -529,7 +528,7 @@ def withdraw_nojs(request):
response["X-Taler-Operation"] = "create-reserve"
response["X-Taler-Callback-Url"] = reverse("pin-question")
response["X-Taler-Wt-Types"] = '["test"]'
- response["X-Taler-Amount"] = amount.stringify(settings.TALER_DIGITS)
+ response["X-Taler-Amount"] = json.dumps(amount.dump())
response["X-Taler-Sender-Wire"] = json.dumps(dict(
type="test",
bank_uri=request.build_absolute_uri(reverse("index")),
--
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 the amount format accepted by the wallet when withdrawing,
gnunet <=