Skip to content

Commit

Permalink
dont allow duplicate langs
Browse files Browse the repository at this point in the history
  • Loading branch information
emphasize committed Feb 3, 2024
1 parent 5426795 commit 76bcda6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ovos_workshop/resource_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,8 @@ def get_available_languages(skill_directory: str) -> List[str]:
languages = []
for directory in base_dirs:
for folder in directory.iterdir():
languages.append(folder.name)
if folder.name not in languages:
languages.append(folder.name)
return languages

def get_inventory(self, specific_type: str = "", language: str = "en-us"):
Expand Down

0 comments on commit 76bcda6

Please sign in to comment.