[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-bank] branch master updated: Fix operations order.
From: |
gnunet |
Subject: |
[taler-bank] branch master updated: Fix operations order. |
Date: |
Thu, 01 Oct 2020 18:52:13 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository bank.
The following commit(s) were added to refs/heads/master by this push:
new 9071753 Fix operations order.
9071753 is described below
commit 9071753bc53200e90e15a18b67f7b4dfdc07edf8
Author: MS <ms@taler.net>
AuthorDate: Thu Oct 1 18:51:55 2020 +0200
Fix operations order.
---
talerbank/app/views.py | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/talerbank/app/views.py b/talerbank/app/views.py
index 7abf523..e7c6803 100644
--- a/talerbank/app/views.py
+++ b/talerbank/app/views.py
@@ -202,13 +202,15 @@ def get_session_flag(request, name):
# @param name hint name
# @return the hint (a "null" one if none was found)
def get_session_hint(request):
+ ret = True, ""
if "hint" in request.session:
+ ret = request.session["hint"]
del request.session["hint"]
- return request.session.get("hint", (True, ""))
+ return ret
def set_session_hint(request, success, hint):
if "hint" in request.session:
- LOGGER.warning(f"Overriding a non consumed hint: {hintId}")
+ LOGGER.warning(f"Overriding a non consumed hint")
del request.session[hintId]
request.session["hint"] = success, hint
@@ -1212,13 +1214,12 @@ def confirm_withdrawal(request, withdraw_id):
op.selected_exchange_account,
op.selected_reserve_pub,
)
-
set_session_hint(
request, success=True, hint="Withdrawal successful!"
)
request.session["just_withdrawn"] = True
-
return redirect("profile")
+
if request.method == "GET":
question, hashed_answer = make_question()
context = dict(
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-bank] branch master updated: Fix operations order.,
gnunet <=