Merge pull request #155 from MycroftAI/fix-skill-install
Fix skill install - attempt 2pull/156/head
commit
e6f546788c
|
@ -12,7 +12,7 @@ class SkillDisplayRepository(RepositoryBase):
|
|||
sql_file_name='get_display_data_for_skills.sql'
|
||||
)
|
||||
|
||||
def get_display_data_for_skill(self, skill_display_id):
|
||||
def get_display_data_for_skill(self, skill_display_id) -> SkillDisplay:
|
||||
return self._select_one_into_dataclass(
|
||||
dataclass=SkillDisplay,
|
||||
sql_file_name='get_display_data_for_skill.sql',
|
||||
|
|
|
@ -34,12 +34,12 @@ class SkillSettingRepository(RepositoryBase):
|
|||
|
||||
return skill_settings
|
||||
|
||||
def get_installer_settings(self, account_id: str):
|
||||
def get_installer_settings(self, account_id: str) -> List[AccountSkillSetting]:
|
||||
skill_repo = SkillRepository(self.db)
|
||||
skills = skill_repo.get_skills_for_account(account_id)
|
||||
installer_skill_id = None
|
||||
for skill in skills:
|
||||
if skill.name == 'mycroft_installer':
|
||||
if skill.display_name == 'Installer':
|
||||
installer_skill_id = skill.id
|
||||
|
||||
skill_settings = None
|
||||
|
|
Loading…
Reference in New Issue