fix get_version cache key

This commit is contained in:
lilydjwg 2018-09-22 13:28:59 +08:00
parent aabf9f5037
commit f75a156d46
1 changed files with 2 additions and 1 deletions

View File

@ -41,7 +41,8 @@ def substitute_version(version, name, conf):
_cache = {}
async def get_version(name, conf, **kwargs):
cache_key = tuple(sorted(conf.items()))
cache_key = sorted(conf.items()) + sorted(kwargs.items())
cache_key = tuple(cache_key)
if cache_key in _cache:
return _cache[cache_key]