Fix json loader - it should go in 'validators' not 'utils'

Fixes #214
This commit is contained in:
Patrick Robertson
2025-02-20 13:10:23 +00:00
parent 40488e0869
commit eda359a1ef
7 changed files with 11 additions and 12 deletions

View File

@@ -59,10 +59,6 @@ def random_str(length: int = 32) -> str:
return str(uuid.uuid4()).replace("-", "")[:length]
def json_loader(cli_val):
return json.loads(cli_val)
def calculate_file_hash(filename: str, hash_algo = hashlib.sha256, chunksize: int = 16000000) -> str:
hash = hash_algo()
with open(filename, "rb") as f: