mirror of
https://github.com/bellingcat/auto-archiver.git
synced 2026-06-12 21:28:29 +03:00
fix config parsing in manifests
This commit is contained in:
@@ -53,4 +53,11 @@ def update_nested_dict(dictionary, update_dict):
|
||||
|
||||
def random_str(length: int = 32) -> str:
|
||||
assert length <= 32, "length must be less than 32 as UUID4 is used"
|
||||
return str(uuid.uuid4()).replace("-", "")[:length]
|
||||
return str(uuid.uuid4()).replace("-", "")[:length]
|
||||
|
||||
|
||||
def parse_csv_to_set(cli_val, cur_val):
|
||||
return set(cli_val.split(","))
|
||||
|
||||
def json_loader(cli_val):
|
||||
return json.loads(cli_val)
|
||||
|
||||
Reference in New Issue
Block a user