summaryrefslogtreecommitdiff
path: root/talerbank/app/views.py
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-10-22 11:38:28 +0200
committerChristian Grothoff <christian@grothoff.org>2020-10-22 11:38:28 +0200
commit0f1817917f627658c11632c5eb88576ce6dcd17f (patch)
tree9f4bd61bbfdca9a53cb8b403e4de0eb95d1a181c /talerbank/app/views.py
parent2e3fdd795b2c3b272edf1494c8d1b68a4044f81d (diff)
downloadbank-0f1817917f627658c11632c5eb88576ce6dcd17f.tar.gz
bank-0f1817917f627658c11632c5eb88576ce6dcd17f.tar.bz2
bank-0f1817917f627658c11632c5eb88576ce6dcd17f.zip
fix spelling issues
Diffstat (limited to 'talerbank/app/views.py')
-rw-r--r--talerbank/app/views.py10
1 files changed, 5 insertions, 5 deletions
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()