From f54f6fad70d2f8262630802e55818705ac948f88 Mon Sep 17 00:00:00 2001 From: Stefano Alberto Russo <stefano.russo@gmail.com> Date: Fri, 5 Nov 2021 17:03:51 +0100 Subject: [PATCH] Minor fix. --- services/webapp/code/rosetta/core_app/utils.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/services/webapp/code/rosetta/core_app/utils.py b/services/webapp/code/rosetta/core_app/utils.py index 9824ea1..2e78016 100644 --- a/services/webapp/code/rosetta/core_app/utils.py +++ b/services/webapp/code/rosetta/core_app/utils.py @@ -513,11 +513,7 @@ def get_task_proxy_host(): return proxy_host def hash_string_to_int(string): - #int_hash = 0 - #for char in string: - # int_hash += ord(char) - #return int_hash - return int(hashlib.sha1(string.encode('utf8')).hexdigest(), 16) #% (10 ** 8) + return int(hashlib.sha1(string.encode('utf8')).hexdigest(), 16) -- GitLab