diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-10-22 11:38:28 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-10-22 11:38:28 +0200 |
commit | 0f1817917f627658c11632c5eb88576ce6dcd17f (patch) | |
tree | 9f4bd61bbfdca9a53cb8b403e4de0eb95d1a181c /talerbank/app/views.py | |
parent | 2e3fdd795b2c3b272edf1494c8d1b68a4044f81d (diff) | |
download | bank-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.py | 10 |
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() |