diff options
author | BonfaceKilz | 2021-10-19 11:05:17 +0300 |
---|---|---|
committer | BonfaceKilz | 2021-10-25 14:00:14 +0300 |
commit | 150a527924f071a06bafc835e03b12eaa12b5768 (patch) | |
tree | 21c1501023871101649443fd1ec0cbed59135e75 | |
parent | 198add36d970c005320700a0ed01e8632e8f6922 (diff) | |
download | genenetwork2-150a527924f071a06bafc835e03b12eaa12b5768.tar.gz |
wqflask: decorators: Fix type when calling hexdigest()
-rw-r--r-- | wqflask/wqflask/decorators.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/decorators.py b/wqflask/wqflask/decorators.py index cc69902e..b1141fb7 100644 --- a/wqflask/wqflask/decorators.py +++ b/wqflask/wqflask/decorators.py @@ -14,7 +14,7 @@ import requests def create_hmac(data: str, secret: str) -> str: return hmac.new(bytearray(secret, "latin-1"), bytearray(data, "utf-8"), - hashlib.sha1).hexdigest[:20] + hashlib.sha1).hexdigest()[:20] def login_required(f): |