Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
Change from list to set for get_keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-WinnfieldX committed May 17, 2024
1 parent 9740b0e commit 14fe2d7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cyberdrop_dl/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "5.3.16"
__version__ = "5.3.17"
4 changes: 2 additions & 2 deletions cyberdrop_dl/managers/config_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ def _load_yaml(file: Path) -> Dict:
return yaml_values if yaml_values else {}


def get_keys(dl, keys=None):
def get_keys(dl, keys=None) -> set:
keys = keys or []
if isinstance(dl, dict):
keys += dl.keys()
_ = [get_keys(x, keys) for x in dl.values()]
elif isinstance(dl, list):
_ = [get_keys(x, keys) for x in dl]
return list(set(keys))
return set(keys)


class ConfigManager:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cyberdrop-dl"
version = "5.3.16"
version = "5.3.17"
description = "Bulk downloader for multiple file hosts"
authors = ["Jules Winnfield <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 14fe2d7

Please sign in to comment.