aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorBonfaceKilz2021-10-19 11:05:17 +0300
committerBonfaceKilz2021-10-25 14:00:14 +0300
commit150a527924f071a06bafc835e03b12eaa12b5768 (patch)
tree21c1501023871101649443fd1ec0cbed59135e75 /wqflask
parent198add36d970c005320700a0ed01e8632e8f6922 (diff)
downloadgenenetwork2-150a527924f071a06bafc835e03b12eaa12b5768.tar.gz
wqflask: decorators: Fix type when calling hexdigest()
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/decorators.py2
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):