From 1e18bfe33255a4337302ecc65edf8cba53862fae Mon Sep 17 00:00:00 2001 From: MS Date: Wed, 2 Jun 2021 19:16:20 +0200 Subject: not asking the currency to the user --- talerbank/app/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'talerbank/app/views.py') 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") -- cgit v1.2.3