diff options
-rw-r--r-- | README | 2 | ||||
-rw-r--r-- | talerbank/app/views.py | 10 |
2 files changed, 6 insertions, 6 deletions
@@ -30,7 +30,7 @@ the following way: $ make i18n -The follwing command creates *new* languages to be translated. In +The following command creates *new* languages to be translated. In particular, it produces the PO file for the language being added. $ python3 manage.py makemessages -l $LANG 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() |