From 0f1817917f627658c11632c5eb88576ce6dcd17f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 22 Oct 2020 11:38:28 +0200 Subject: fix spelling issues --- talerbank/app/views.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'talerbank/app/views.py') diff --git a/talerbank/app/views.py b/talerbank/app/views.py index e51bfe2..853b6ae 100644 --- a/talerbank/app/views.py +++ b/talerbank/app/views.py @@ -228,7 +228,7 @@ def get_session_flag(request, name): def get_session_hint(request): ret = True, "" if "hint" in request.session: - ret = request.session["hint"] + ret = request.session["hint"] del request.session["hint"] return ret @@ -373,12 +373,12 @@ def payto_transfer(request): # Helper function that hashes its input. Usually # used to hash the response to the math CAPTCHA. # -# @param ans the plain text answer to hash. -# @return the hashed version of @a ans. -def hash_answer(ans): +# @param answer the plain text answer to hash. +# @return the hashed version of @a answer. +def hash_answer(answer): hasher = hashlib.new("sha1") hasher.update(settings.SECRET_KEY.encode("utf-8")) - hasher.update(ans.encode("utf-8")) + hasher.update(answer.encode("utf-8")) return hasher.hexdigest() -- cgit v1.2.3