From 870b6a24246f4518ec43708797ed54072da3391c Mon Sep 17 00:00:00 2001 From: nineven Date: Wed, 8 Apr 2020 09:12:43 +0800 Subject: [PATCH] fix a download bug --- fir_ser/api/utils/TokenManager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fir_ser/api/utils/TokenManager.py b/fir_ser/api/utils/TokenManager.py index fada543..8ecaaf9 100644 --- a/fir_ser/api/utils/TokenManager.py +++ b/fir_ser/api/utils/TokenManager.py @@ -24,7 +24,7 @@ class DownloadToken(object): token_key = "%s%s"%(CACHE_KEY_TEMPLATE.get("make_token_key"),release_id) make_token_key = cache.get(token_key) if make_token_key: - return cache.get(make_token_key) + return make_token_key else: random_str = uuid.uuid1().__str__().split("-")[0:-1] user_ran_str = uuid.uuid5(uuid.NAMESPACE_DNS, release_id).__str__().split("-")