From 150a527924f071a06bafc835e03b12eaa12b5768 Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Tue, 19 Oct 2021 11:05:17 +0300 Subject: wqflask: decorators: Fix type when calling hexdigest() --- wqflask/wqflask/decorators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wqflask') 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): -- cgit v1.2.3