Batch download songs; add tests for song invalidation and deletion

This commit is contained in:
Sumner Evans
2020-05-09 05:25:37 -06:00
parent e0449bccb3
commit 0e8d2ca68b
9 changed files with 355 additions and 123 deletions

7
sublime/util.py Normal file
View File

@@ -0,0 +1,7 @@
import hashlib
import json
from typing import Any
def params_hash(*params: Any) -> str:
return hashlib.sha1(bytes(json.dumps(params), "utf8")).hexdigest()