Got browse caching working
This commit is contained in:
@@ -7,6 +7,7 @@ from sublime.adapters import AlbumSearchQuery
|
||||
|
||||
def params_hash(*params: Any) -> str:
|
||||
# Special handling for AlbumSearchQuery objects.
|
||||
# TODO figure out if I can optimize this
|
||||
if len(params) > 0 and isinstance(params[0], AlbumSearchQuery):
|
||||
params = (hash(params[0]), *params[1:])
|
||||
return hashlib.sha1(bytes(json.dumps(params), "utf8")).hexdigest()
|
||||
|
Reference in New Issue
Block a user