mirror of
https://github.com/aclist/dztui.git
synced 2026-10-31 07:02:50 +01:00
chore: consolidate is_in_favs() methods
This commit is contained in:
1 parent
eb4ee41742
commit
29aeb550b3
3 files changed
+6
-11
No files matched your search
@@ -40,11 +40,11 @@ def get_favorites(path: Path) -> list[str]:
|
||||
return conf["ip_list"]
|
||||
|
||||
|
||||
def is_in_favs(record: str, path: Path) -> bool:
|
||||
favs = get_favorites(path)
|
||||
if record in favs:
|
||||
return True
|
||||
return False
|
||||
# def is_in_favs(record: str, path: Path) -> bool:
|
||||
# favs = get_favorites(path)
|
||||
# if record in favs:
|
||||
# return True
|
||||
# return False
|
||||
|
||||
|
||||
def enum_to_key(enum: Preferences) -> str:
|
||||
|
||||
Reference in new issue
Block a user