gnunet-svn
[Top][All Lists]
Advanced

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

[taler-bank] branch master updated: validation


From: gnunet
Subject: [taler-bank] branch master updated: validation
Date: Thu, 28 Nov 2019 18:24:11 +0100

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

dold pushed a commit to branch master
in repository bank.

The following commit(s) were added to refs/heads/master by this push:
     new 1ef4f6e  validation
1ef4f6e is described below

commit 1ef4f6e4f2ffe1278ab5d8be777ebf607d54f95a
Author: Florian Dold <address@hidden>
AuthorDate: Thu Nov 28 18:24:05 2019 +0100

    validation
---
 talerbank/app/views.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/talerbank/app/views.py b/talerbank/app/views.py
index 60ee598..763a0e9 100644
--- a/talerbank/app/views.py
+++ b/talerbank/app/views.py
@@ -903,8 +903,9 @@ def withdraw_headless_uri(request, user):
     data = WithdrawHeadlessUri(data_json)
     if not data.is_valid():
         raise JSONFieldException(data.errors, 400)
+    amount = Amount.parse(data.cleaned_data["amount"])
     user_account = BankAccount.objects.get(user=user)
-    op = TalerWithdrawOperation(amount=data.amount, 
withdraw_account=user_account)
+    op = TalerWithdrawOperation(amount=amount, withdraw_account=user_account)
     op.save()
     host = request.get_host()
     taler_withdraw_uri = f"taler://withdraw/{host}/-/{op.withdraw_id}"

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



reply via email to

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