fix a download bug

super_signature
nineven 5 years ago
parent 7421d1a38d
commit 870b6a2424
  1. 2
      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("-")

Loading…
Cancel
Save