diff options
author | MS <ms@taler.net> | 2021-06-02 19:16:20 +0200 |
---|---|---|
committer | MS <ms@taler.net> | 2021-06-02 19:16:20 +0200 |
commit | 1e18bfe33255a4337302ecc65edf8cba53862fae (patch) | |
tree | 4a91979c15e7b4a987fcd0a0e2dd36558c759aef /talerbank/app/views.py | |
parent | 8a07e2cb6cc33b5645717b8b54e722b47b5d319b (diff) | |
download | bank-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.py | 4 |
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") |