summaryrefslogtreecommitdiff
path: root/talerbank/app/views.py
diff options
context:
space:
mode:
authorMS <ms@taler.net>2021-06-02 19:16:20 +0200
committerMS <ms@taler.net>2021-06-02 19:16:20 +0200
commit1e18bfe33255a4337302ecc65edf8cba53862fae (patch)
tree4a91979c15e7b4a987fcd0a0e2dd36558c759aef /talerbank/app/views.py
parent8a07e2cb6cc33b5645717b8b54e722b47b5d319b (diff)
downloadbank-1e18bfe33255a4337302ecc65edf8cba53862fae.tar.gz
bank-1e18bfe33255a4337302ecc65edf8cba53862fae.tar.bz2
bank-1e18bfe33255a4337302ecc65edf8cba53862fae.zip
not asking the currency to the user
Diffstat (limited to 'talerbank/app/views.py')
-rw-r--r--talerbank/app/views.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/talerbank/app/views.py b/talerbank/app/views.py
index e6a09ed..d03faee 100644
--- a/talerbank/app/views.py
+++ b/talerbank/app/views.py
@@ -307,7 +307,9 @@ def wiretransfer_form(request):
# A payment was submitted.
try:
- amount = Amount.parse(request.POST.get("amount"))
+ amount = Amount.parse(
+ "{}:{}".format(request.POST.get("currency"), request.POST.get("amount")
+ ))
except Exception:
set_session_hint(request, success=False, hint="Wrong amount specified.")
return redirect("wiretransfer-form")